Advertisement
shiftdot515

toggle checkbox

Jul 27th, 2019
1,673
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. tell application "iTunes"
  2.     set sel to selection
  3.     set is_ct to player position is not missing value
  4.     if sel is {} and is_ct then
  5.         set sel to current track as list
  6.     end if
  7.     repeat with aTrack in sel
  8.         tell aTrack
  9.             try
  10.                 set enabled to not (get enabled)
  11.             end try
  12.         end tell
  13.     end repeat
  14. end tell
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement