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 22m 23s ago
Export album artwork as folder.jpg to Album folder
downloaded 23m 25s ago
Export selected playlists as individual XML or M3U files
downloaded 26m 30s ago
Export artwork of selected tracks to parent or specified folder
downloaded 51m 25s ago
Batch-change the Album Rating for the albums of selected tracks
downloaded 1h 3m 21s ago
Change the iTunes "done" chime to a System sound, no sound, or your choice of an AIFF sound file
downloaded 1h 12m 55s ago
Use tag data to formulate new file name for selected tracks' files