Skip to content

Instantly share code, notes, and snippets.

@pkazmierczak
Last active August 29, 2015 14:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pkazmierczak/22b035bca58743a60a5c to your computer and use it in GitHub Desktop.
Save pkazmierczak/22b035bca58743a60a5c to your computer and use it in GitHub Desktop.
Last.fm cheater
tell application "iTunes"
set mySongs to every track of library playlist 1 whose artist is "Uri Caine Trio"
repeat with theTrack in mySongs
play theTrack
repeat until (player position > ((get duration of the current track) / 2)) or (player position > 240)
delay 0.5
end repeat
end repeat
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment