This script will embed artwork that has already been downloaded (via the iTunes "Get Album Artwork" command) into the files of the selected tracks.
Also see Re-Embed Artwork.
NOTE: For best results, use with an album's worth of tracks--or so--at a time. iTunes may be obliged to perform a number of background tasks when applying image data and may prevent the script from proceeding if a large amount of data is involved.
Note: (August 2014) Not sure what the issue is but results are inconsistent with modern versions of iTunes.
Perhaps Also of Interest...
downloaded 3m 27s ago
Convert or import tracks with any encoder on the fly
downloaded 9m 29s ago
Copy chosen tag info from one set of tracks to a different set of tracks
downloaded 10m 58s ago
Title Cap various track tags, featuring editable exceptions lists
downloaded 33m 31s ago
Set Last Skipped date of selected tracks to today or today minus your number of days.
downloaded 37m 28s ago
Delete files downloaded and cached by Apple Music
downloaded 39m 4s ago
Export selected playlists as individual XML or M3U files