Skip to content

Instantly share code, notes, and snippets.

@rmanly
Created April 5, 2013 20:33
Show Gist options
  • Save rmanly/5322408 to your computer and use it in GitHub Desktop.
Save rmanly/5322408 to your computer and use it in GitHub Desktop.
Ask for folders with Applescript dialog boxes then rsync. Mostly an exercise to pass the variables from Applescript to a cli program
set sourceFolder to quoted form of POSIX path of (choose folder)
set destFolder to quoted form of POSIX path of (choose folder)
do shell script "rsync -auv --ignore-errors --exclude '.Trash' --exclude 'MobileSync' " & sourceFolder & " " & destFolder with administrator privileges
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment