Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Use a Smart Playlist to see unchecked songs in iTunes' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Use a Smart Playlist to see unchecked songs in iTunes
Authored by: Unsoluble on May 31, '05 02:18:24PM

Just thought I'd mention a different approach to organizing iPod/non-iPod tracks:

I don't use the Comments field for anything, so I wrote a script that adds the comment "iPod" to any selected songs, and called it "Add Tracks to iPod". Wrote another that removes any comments; "Remove from iPod".

Then I made two smart playlists: One that includes any track with "iPod" in its comments; the other for all the rest. I set my iPod to automatically sync only the "On iPod" smart playlist, and everything works as expected.

Of course, this approach probably doesn't work if you like to make *other* playlists and sync them. But I don't know; I've never used regular playlists.



[ Reply to This | # ]
Use a Smart Playlist to see unchecked songs in iTunes
Authored by: bkpr on May 31, '05 05:48:26PM

...would you be the type of person whomay share these applescipts? I have many unchecked songs in my library that I don't want to put onto the iPod, but still want to listen to when at home.The unchecked songs won't play through (from one to the next) so if I could sync up a playlist that is based on comments, that would solve my problem.

_cheers
_bkpr



[ Reply to This | # ]
Use a Smart Playlist to see unchecked songs in iTunes
Authored by: Unsoluble on Jun 01, '05 02:28:13AM
Sure, I can share. :) I just browsed around for a script on Doug's page (mentioned above) that dealt with changing the comment field, and tweaked it to suit my needs. Here's the one I've got saved as "Add to iPod":
tell application "iTunes"
	set theText to "iPod"
	copy (a reference to (get view of front window)) to thePlaylist
	if selection exists then
		set using_selection to true
		copy (count selection's items) to idx
	else
		set selectedTracks to (get a reference to thePlaylist)
		copy (count thePlaylist's tracks) to idx
	end if
	repeat with i from 1 to idx
		if using_selection then
			copy item i of selection to thisTrack
		else
			copy track i of selectedTracks to thisTrack
		end if
		set thisTrack's comment to theText
	end repeat
end tell
So basically that just checks to see what you've got selected (and if nothing, it takes the current playlist), and then goes through each of those tracks and adds the text "iPod" to the comments field. The other script (saved as "Remove from iPod") is exactly the same thing, but with
set theText to ""
in the second line, which removes the "iPod" comment. Then you just need two smart playlists: One that matches Comments->contains->"iPod", and one that matches Comments->does not contain->"iPod". Hope that helps...

[ Reply to This | # ]