Created
April 5, 2013 20:33
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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