For macOS 10.10 and later. This script will look for an image file in the parent folder of each selected track's file--presumably its Album folder in which you have previously placed an image file of some sort--and apply the data from that image file as artwork for the track.
Perhaps Also of Interest...
downloaded 19m 57s ago
Sort purchased tracks into discrete playlists by name or Apple ID
downloaded 52m 2s ago
Check scripts downloaded to your computer from dougscripts.com for latest version
downloaded 55m 7s ago
Perform tasks on a batch of playlists; rename, delete, duplicate, merge, more
downloaded 1h 36m 0s ago
Removes leading and trailing space characters from chosen tags in selected tracks
downloaded 1h 36m 8s ago
Append user-entered text to beginning or ending of selected tag of each selected track
downloaded 1h 38m 9s ago
Exports and then re-imports selected tracks' artwork