Skip to content

Instantly share code, notes, and snippets.

@gblache
Created March 4, 2009 04:59
Show Gist options
  • Save gblache/73720 to your computer and use it in GitHub Desktop.
Save gblache/73720 to your computer and use it in GitHub Desktop.
scp AppleScript for use with Quicksilver or Automator
tell application "Finder"
set destination to "user@domain.com"
set path to "/home/user/upload/path"
set s to selection
repeat with eachSelection in s
set x to eachSelection as string
set y to POSIX path of x
do shell script "scp -r \"" & y & "\" " & destination & ":" & path
end repeat
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment