Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- tell application "iTunes"
- # set silenceTrack to track "Silence - 10 Seconds"
- reveal (some playlist whose special kind is Music)
- set shuffle mode to albums
- set shuffle enabled to true
- stop
- play
- pause
- repeat
- set question to display dialog "Add this album?" buttons {"Done", "Skip Album", "Add Album"} default button 3
- set answer to button returned of question
- if answer is equal to "Done" then
- set shuffle enabled to false
- exit repeat
- end if
- if answer is equal to "Skip Album" then
- set startCurrentAlbum to album of current track
- repeat
- next track
- set currCurrentAlbum to album of current track
- if startCurrentAlbum is not equal to currCurrentAlbum then
- exit repeat
- end if
- end repeat
- end if
- if answer is equal to "Add Album" then
- set startCurrentAlbum to album of current track
- repeat
- duplicate current track to playlist "Up Next"
- next track
- set currCurrentAlbum to album of current track
- if startCurrentAlbum is not equal to currCurrentAlbum then
- # duplicate silenceTrack to playlist "Up Next"
- exit repeat
- end if
- end repeat
- end if
- end repeat
- end tell
Add Comment
Please, Sign In to add comment