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


Click here to return to the 'Remove album artwork in iTunes 7 via script' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Remove album artwork in iTunes 7 via script
Authored by: omo on Oct 03, '06 04:56:32AM
I made a version that removes the artwork of the currently selected tracks as well - with the warning dialog and the copy-to-clipboard-for-restore-feature. Here it is:


set thetarget to button returned of (display dialog "Do you really want to delete the artwork from the selected tracks?" buttons {"OK", "Cancel"} with icon 1)

if thetarget = "OK" then
	try
		tell application "iTunes"
			set thelist to selection
			set firstTrack to item 1 of selection
			-- copy artwork to clipboard
			set theArt to data of artwork 1 of firstTrack
			set the clipboard to theArt
			-- get all tracks of the album selected
			repeat with x in thelist
				delete artwork 1 of x
			end repeat
		end tell
	end try
end if



[ Reply to This | # ]