Skip to content

Howto: SCP droplet for Mac OSX

February 11, 2007

1. start apple script editor

1a. arrange ssh key pairs between source and target machines

2. paste following code (changing the first line as appropriate)


property scp_target : "user@host:path/to/images"
on open fileList
repeat with thisFile in fileList
set the item_path to the quoted form of the POSIX path of thisFile
do shell script ("scp " & item_path & " " & scp_target)
end repeat
end open

3. File -> Save As -> choose application and check “run only” only

4. drop files onto the droplet

Advertisements

From → computers, howto

Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: