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 16m 46s ago
Remove iTunes tracks disassociated from files
downloaded 24m 38s ago
Display, create text file listing info of dead tracks
downloaded 1h 2m 38s ago
Convert selected tracks and export the converted files to a new folder
downloaded 1h 4m 49s ago
Swap the name with the artist of selected tracks
downloaded 1h 39m 35s ago
Set choice of various number tags of selected tracks incrementally
downloaded 1h 41m 8s ago
Batch set new Last Played/Last Skipped of selected tracks