Can't get every track of playlist error -1728

GO TO ADMIN PANEL > ADD-ONS AND INSTALL VERTIFORO SIDEBAR TO SEE FORUMS AND SIDEBAR

hangdog

New member
Joined
Aug 30, 2005
Messages
4
Points
0
Website
hangdogproductions.com
Trying to remove all instances of a given artwork. So I want to select a track in a playlist that has that art, and then delete that art from all the other tracks in the list.

My attempt so far fails when I try to find all the other tracks that have that art.

Fails at the 'every track of this_list...' with a "Can't get every track of playlist..."

Suggestions?

Code:
--attempting to remove front artwork of current track 
from front of all other tracks in playlist

tell application "iTunes"
	set this to view of front window
	if selection exists then
		set c to (item 1 of index of selection)
		set this_list to playlist
		tell this
			if artworks of track c exists then
				set theArt to front artwork of track c
				
				set theseTracks to (every track of this_list 
                                  whose artwork is theArt)
				
				with timeout of 30000 seconds
					repeat with atrack in theseTracks
						try
							delete front artwork of 
                                                           atrack in theseTracks
						end try
					end repeat
				end timeout
				
				
				display dialog "Done!" buttons {"Thanks"}
                                  default button 1 giving up after 30
			end if
			
		end tell
	end if
end tell
 
Top