|
|
Create iTunes playlists of rarely-played albums via script
&Hello. I am the original submitter (who did not have any unplayed songs in his 2200 song library before I went out and bought one). Sorry about the gaff....but if the script were perfect, I wouldn't be named 'Oops'! Thank you to MacOSXHints and Doug Adams for getting a fixed version out there in the first place.
Anyway, here is a script which fixes the problem regarding the unplayed songs and which also makes it so that the user does not have to create any playlists to start with (which was the case of the original unposted script). I stuck to my own less efficient code just because its mine. Also, the one which eventually was posted gets my library age wrong by between 4 and 5 days and I haven't have time to figure out why yet. Also, the scripts which were posted also duplicated videos and digital booklets to the playlist, whereas I just wanted music in the dusty playlist (I don't have time to sit and look at either booklets or videos anyway and if someone has merely an iPod Shuffle like I do, then these are not desired in the playlist). If you want to include these, just remove "and kind contains "audio"" from each statement which has it. This script now eliminates those whose checkbox is unchecked (but this extra can be removed if you remove "and enabled is true"" from every line where it occurs). If you like the dialog which allows you to delete the script generated playlists, then you can copy that portion of the originally posted script which Doug Adams put in (ince I am 'Oops' it makes me nervous to have 'delete' in any script which I give to someone else). I will later try to remove the use of names, and perhaps that will help when song names have unusual characters (if that indeed is a problem now). I'll also try to see what error I get if there are missing songs (exclamation points in the listing), but for now I would fix the exclamation points. Anyway, here are the updated scripts:
Dustier Albums (those with at least half not having been played in x days or some not having ever been played)
Library age difference is because of videos
The Library age is different between these two scripts because the adjustment by Doug Adams includes the ages of videos and mine just includes the ages of songs. Removal of "and kind includes "audio"" from any line where it occurs in my script above will include videos and digital booklets in the playlist and will calculate the age accordingly. |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.06 seconds |
|