PDA

View Full Version : Writing a script for FTP


Nomadic Logic
Sep 18, 2006, 08:05 PM
About 3 times a week, I need to ftp one file from my MBP to an ftp server. Is there any way to achieve this by being able to click an icon maybe in the dock? Something tells me it shouldn't be hard, but I don't know where to start.

jay3ld2
Sep 18, 2006, 09:10 PM
if you use Transmit as your FTP application yes:

How can I use AppleScript with Transmit?
Download these Sample AppleScripts.zip (15k) (http://www.panic.com/transmit/d/Transmit Sample AppleScripts.zip) and see how it works! Users of Mac OS X Tiger may find it easier to use Transmit 3.2's built-in Automator actions.

Tsilou B.
Sep 19, 2006, 04:58 AM
First, download and install theFTP Automator Actions (http://editkid.com/upload_to_ftp/). Then launch Automator and drag the file you always need to upload from the Finder into the Automator window. A new action will be created ("Get Specified Finder Items"). Then drag the "Upload to FTP" action from the actions list to your automator workflow (below the "Get Specified Finder Items" action). Fill in the address of the server, the directory etc. and save your workflow somewhere. Quit Automator, drag a copy of the workflow to the Dock and you have exactly what you wanted.