Context Menu Item - Add Cover Art from Folder.jpg

I've searched here and tried several different commands but I can't get anything to work.

I want to select one or more MP3 files and use a Context Menu item to add the Folder.jpg file from the same folder as the cover art for the selected file(s).

I've tried variatons of this:

SetAttr META coverart:front:Folder.jpg

This will remove the cover art from a file if it had any. But that's all it will do.

I've tried a bunch of different variations on this but no luck.

I would appreciate any help.

Thanks.

Try this:

SetAttr META "coverart:front:{sourcepath}Folder.jpg"
2 Likes

That was it!

I appreciate your help.

ok trying to set front cover and back cover

i have try
iam trying to set front and back covers with out removing any covers

SetAttr META "coverart:+back:{sourcepath}back.jpg" that seam to work

SetAttr META "coverart:+front:{sourcepath}front.jpg"

update got it working ......

how to set to front or back image from clipboard ?
eg copy image to clipboard run button and pick front or back cover

thank you

SetAttr META "coverart:+front:clip"

can you have one button that has a list ? say if you pick 1 front or 2 back i just was writing when i worked out what you mean i think haha

You could try something like this:

SetAttr META "coverart:+{dlgchoose|Select coverart type|Front+Back}:clip"

1 Like

worked great thank you .... would love to see a place on the forum where you cold upload all buttons that are related eg for working with music files ,,, working with pictures working with documents videos and so on

iam getting a lot of great music buttons together now would be great if they where all in one place

You can post them in the Buttons/Scripts category and tag them with audio.

i forgot about tags might have to go have a look see what else i can find thank you

ok i need some help with one more

i hvave

SetAttr META "coverart:+front:{sourcepath}1973 - Front.jpg"

and that works

but work like

Select *.mp3
SetAttr META "coverart:+front:{sourcepath}*Front.jpg"

but its not working .. what am i doing wrong ?

SetAttr has a FILE argument that lets you tell it which file or a wildcard if you don't want it to work on the selected files. Use that instead of changing the selection.

https://www.gpsoft.com.au/help/opus12/index.html#!Documents/SetAttr.htm

In general, changing the selection via commands is for changing what is selected in the lister, not for changing which files subsequent commands will work on.

SetAttr FILE *.mp3 META "coverart:+front:{sourcepath}1973 - Front.jpg"

FILE is the default argument so you can also write:

SetAttr *.mp3 META "coverart:+front:{sourcepath}1973 - Front.jpg"
1 Like

i tried setting

SetAttr META "coverart:+front:{sourcepath}*Front.jpg" as i thought it would work with any *Front.jpg it found in the folder ?

1973 - Front.jpg" becomes Front.jpg
next folder 1974 - Front.jpg" and so on

so i cant set a wildcard ? *Front.jpg for cover ?

No, you need to know the actual filename.

Oops. I deleted the post asking the question because I found the answer. Should have seen your reply first.

Thanks!

1 Like

It's also possible to set this command up as an entry in your right click menu only for music files. You can edit context menus in the file types dialog.