Created
June 13, 2011 01:18
-
-
Save talios/1022190 to your computer and use it in GitHub Desktop.
Hacking iTunes playlist for funky sorting.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| iTunes := SBApplication applicationWithBundleIdentifier:'com.apple.iTunes' | |
| playlists := ((iTunes sources at: 0) playlists. | |
| playlist := (playlists where: playlists name = 'The Full Daily Play'). | |
| playlist tracks do: [:track | | |
| track setSkippedDate: (NSDate dateWithString: | |
| (track dateAdded description substringWithRange: (NSValue rangeWithLocation:0 length:8)) | |
| ++ '01 00:00:00 +1200') | |
| ] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment