Go Back   The macosxhints Forums > OS X Help Requests > Applications



Reply
 
Thread Tools Rate Thread Display Modes
Old 02-04-2005, 06:55 AM   #1
saurya_s
Major Leaguer
 
Join Date: Dec 2003
Location: Oxford
Posts: 371
Apple script for cyberduck

Hi
Does anybody has an applescript which connects cyberduck to a server automatically when launced. Otherwise One has to ask it to connect to the server name from the bookamrk menu.
Thanks
S
__________________
New OS X User ,1.25 GHz G4 Powerbook with Superdrive Mac OS X Panther
saurya_s is offline   Reply With Quote
Old 02-04-2005, 08:29 AM   #2
Raven
Hall of Famer
 
Join Date: Jul 2003
Location: Montreal
Posts: 4,782
Some thing like this could work...

Code:
Tell application Cyberduck"
open URL "ftp://username:password@server address"
end tell
Then save your script as an app and double click on it when you wanna startup Cyberduck with that URL opened... Sad that cyberduck does not have a Script menu though...
PS: I figured that you could do such calls to Cyberduck by looking at the script examples that come with the download.
__________________
Waffled foreheads are a symptom of broken keyboards and inexperienced users

Last edited by Raven; 02-04-2005 at 08:33 AM.
Raven is offline   Reply With Quote
Old 02-04-2005, 08:43 AM   #3
saurya_s
Major Leaguer
 
Join Date: Dec 2003
Location: Oxford
Posts: 371
Sorry, I haven't got any clue of apple script but got to know from somebody that is duable. can you please instruct me stepwise plz.
Thanks
S
__________________
New OS X User ,1.25 GHz G4 Powerbook with Superdrive Mac OS X Panther
saurya_s is offline   Reply With Quote
Old 02-04-2005, 09:55 AM   #4
Raven
Hall of Famer
 
Join Date: Jul 2003
Location: Montreal
Posts: 4,782
No problem, I'll be glad to !

So, open the Script Editor which you should normally have in the Applications folder.
Copy the example script I posted in a new script window (normally one opens automatically when you start the program).
Replace the username and password words with your actually user name and password for the FTP you want to connect to.
After the @ sign, type in the server address you would normally type in the URL field in Cyberduck after ftp://
Once all your info is ok, click on the Run button at the top of the script window and it will try running it. If Cyberduck comes up properly and opens your ftp, then all is perfect !
Then, save the file as as cript to where ever you wish
Once thats done, go to Save As, choose Application as File Format from the drop down menu , uncheck Startup screen, Check Run only and make sure Stay open is unchecked. Also, make sure to show the Extension for the file.
Once thats saved, you can add it to your startup items even if you wish, or put it in the Dock for pratical use.
__________________
Waffled foreheads are a symptom of broken keyboards and inexperienced users
Raven is offline   Reply With Quote
Old 02-04-2005, 10:11 AM   #5
saurya_s
Major Leaguer
 
Join Date: Dec 2003
Location: Oxford
Posts: 371
Thanks

Wicked, very nice, work like a charm. I guess you forgot the first inverted comma before cyberduck.
So, where do you geeks store your scripts? Just trying to be organized!!
Thanks a ton.
__________________
New OS X User ,1.25 GHz G4 Powerbook with Superdrive Mac OS X Panther
saurya_s is offline   Reply With Quote
Old 02-04-2005, 10:18 AM   #6
Raven
Hall of Famer
 
Join Date: Jul 2003
Location: Montreal
Posts: 4,782
Personnaly, I went for a duh duh storage solution... I Created a folder called Scripts in Documents and save the script versions there. Then I put the app versions of the scripts in the Applications folder I already had in my user folder. (If you don't have one, simply go to the root of your user folder and create a new folder called Applications, with exactly the same spelling as the main Applications folder and you will see that that folder will even gain the Apps fiolder icon..> And thats how you get an Applications folder for apps that you want to install for your account only (I do this alot with admin tools.
__________________
Waffled foreheads are a symptom of broken keyboards and inexperienced users
Raven is offline   Reply With Quote
Old 02-04-2005, 10:34 AM   #7
saurya_s
Major Leaguer
 
Join Date: Dec 2003
Location: Oxford
Posts: 371
Ok, thanks a lot.
S
__________________
New OS X User ,1.25 GHz G4 Powerbook with Superdrive Mac OS X Panther
saurya_s is offline   Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT -5. The time now is 06:48 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
Site design © IDG Consumer & SMB; individuals retain copyright of their postings
but consent to the possible use of their material in other areas of IDG Consumer & SMB.