Advertisement
Guest User

Untitled

a guest
Aug 14th, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. on adding folder items to this_folder after receiving added_items
  2.   tell application "Finder"
  3.     set fold_name to the name of this_folder
  4.     try
  5.       repeat with i from 1 to number of items in added_items
  6.         set new_item to item i of added_items
  7.         set the item_path to the quoted form of the POSIX path of new_item
  8.         do shell script ("/usr/bin/rsync -r /Users/ahammond/td " & item_path)
  9.         do shell script ("/usr/sbin/diskutil eject " & item_path)
  10.       end repeat
  11.     end try
  12.   end tell
  13. end adding folder items to
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement