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 10m 53s ago
Title Cap various track tags, featuring editable exceptions lists
downloaded 16m 0s ago
Perform search-and-replace on text in your choice of tags
downloaded 22m 4s ago
Export artwork of selected tracks to parent or specified folder
downloaded 25m 35s ago
Load this script in your Login Items to activate an iTunes playlist at startup
downloaded 26m 27s ago
View/Edit tags of selected track(s) in single window
downloaded 31m 19s ago
Enter text for the selected tracks' Description tag