Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on adding folder items to this_folder after receiving added_items
- tell application "Finder"
- set fold_name to the name of this_folder
- try
- repeat with i from 1 to number of items in added_items
- set new_item to item i of added_items
- set the item_path to the quoted form of the POSIX path of new_item
- do shell script ("/usr/bin/rsync -r /Users/ahammond/td " & item_path)
- do shell script ("/usr/sbin/diskutil eject " & item_path)
- end repeat
- end try
- end tell
- end adding folder items to
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement