Advertisement
agilesetllc

Decompilation of Adam Curry's iPod.scpt

Mar 21st, 2023
1,842
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
AppleScript 0.72 KB | Source Code | 0 0
  1. on adding folder items to this_folder after receiving these_items
  2.     -- these_items will contain a list of file references to the added items
  3.     set item_count to number of items in the these_items
  4.     set addcount to 0
  5.     if item_count is greater than 0 then
  6.         repeat with i from 1 to item_count
  7.             set this_info to info for item i of these_items
  8.             if folder of this_info is false then
  9.                 tell application "iTunes.app"
  10.                     «event hookAdd » item i of these_items given «class insh»:«class cPly» "syncPod"
  11.                     addcount = addcount + 1
  12.                 end tell
  13.             end if
  14.         end repeat
  15.         if addcount is greater than 0 then
  16.             tell application "iTunes.app"
  17.                 «event hookUpdt» "Adam Curry's iPod"
  18.             end tell
  19.         end if
  20.     end if
  21. end adding folder items to
  22.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement