Skip to content

Instantly share code, notes, and snippets.

@eidantoei
Created January 15, 2011 15:23
Show Gist options
  • Save eidantoei/780980 to your computer and use it in GitHub Desktop.
Save eidantoei/780980 to your computer and use it in GitHub Desktop.
iTunes auto cutting
tell application "iTunes"
play
repeat
next track
set l to duration of current track
repeat 16 times
set p to random number from (l - 1)
set r to random number from 1 to 4
set d to 2 ^ (4 - r) / 10
repeat 2 ^ r times
set player position to p
delay d
end repeat
end repeat
end repeat
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment