dougscripts.com

September 5 2017 - 1:06 pm

Find Tracks with Multiple Artworks

This will corral all the tracks in the Music library that have more than one assigned artwork to a new playlist (whose name you supply; any existing playlist(s) with that name will be deleted beforehand):

tell application "iTunes"

try

set newPlaylistName to text returned of (display dialog ¬

"Enter a name for the playlist:" default answer "Multi-artwork tracks")

on error

return

end try

try

delete (every playlist whose name is newPlaylistName)

end try

set newPlaylist to (make new playlist with properties {name:newPlaylistName})

set musicLibrary to (get some playlist whose special kind is Music)

repeat with i from 1 to (index of last track of musicLibrary)

try

set aTrack to track i of musicLibrary

if (count of artworks of aTrack) > 1 then

try

duplicate aTrack to newPlaylist

end try

end if

end try

end repeat

display dialog "Done" buttons {"OK"} default button 1

end tell

Open this in Script Editor by clicking the little script icon. Save it named whatever you like as a Script Bundle in your ~/Library/iTunes/Scripts/ folder so that it will be listed in the iTunes Script menu. Launch the script and enter a name for the playlist; the default is "Multi-artwork tracks"; press OK.

Site contents © 2001 - 2024 (that's right: 2001) Doug Adams and weblished by Doug Adams. Contact support AT dougscripts DOT com. About.
All rights reserved. Privacy.
AppleScript, iTunes, iPod, iPad, and iPhone are registered trademarks of Apple Inc. This site has no direct affiliation with Apple, Inc.
The one who says "it cannot be done" should not be interrupting the one who is doing it.