mingsai

File Action - Process Multiple Files

Mar 3rd, 2014
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. on adding folder items to this_folder after receiving these_items
  3.     repeat with x from 1 to the count of these_items
  4.         set theFile to item x of these_items
  5.         set theTags to {"receipt", "viaDropbox"}
  6.         try
  7.             tell application "Yojimbo"
  8.                 set newItem to (import theFile)
  9.                 add tags theTags to newItem
  10.             end tell
  11.         end try
  12.     end repeat
  13.     tell application "Finder"
  14.         delete these_items
  15.     end tell
  16. end adding folder items to
Advertisement
Add Comment
Please, Sign In to add comment