How to save cover art images as files with filenames same as type of cover art?

So multiple scripts? Can you explain a bit more
please?

The script I posted above. It’s meant to be set as the cover art name and will perform differently on track 1 and other tracks.

ah ok, so one script that behaves differently based on track number…

is there a way to call out to a longer script ?