Action script to change track details

I need an action or group action for the following.

Will use the action for all files in an album, to change from one album to a different one.

1-Replace cover art, from folder/ file
2-rename genre to..
3-rename album name to ..
4- set album artist to Various
5-set track number to blank
6-set disk number to blank
7-delete comment field
8-save

Any help would be appreciated

Looked at tutorial but not sure how to proceed

Could you eleborate a little

  1. what would be the name pattern for the picture file name?
  2. should this be always the same genre or a different one each time? If the latter is the case, then you would have to edit the action group when the data should be different.
  3. should this always be the same album name or a different one each time? If the latter is the case, then you would have to edit the action group when the data should be different.
  4. Try an action of the type "Format value" for ALBUMARTIST with Format string "Various"
  5. &6&7. Try an action of the type "Remove fields" with Fields: track;discnumber;comment
  6. superfluous, modifcations are saved automatically once an action has finished with a file.
  1. what would be the name pattern for the picture file name? >> The image file for the cover art is in a folder on my HDD just need to point to it as a replacement for the existing

  2. should this be always the same genre or a different one each time? If the latter is the case, then you would have to edit the action group when the data should be different. >> Same

  3. should this always be the same album name or a different one each time? If the latter is the case, then you would have to edit the action group when the data should be different. >> Different will create individual action groups

  4. Try an action of the type "Format value" for ALBUMARTIST with Format string "Various" >> ok thanks

  5. &6&7. Try an action of the type "Remove fields" with Fields: track;discnumber;comment >> ok thanks

  6. superfluous, modifcations are saved automatically once an action has finished with a file. > Ok thanks wasn't sure :+1:

Is this a fixed name like folder.jpg or is there just a single picture file in the folder?
In any case: it would be an action of the type "Import cover from file" in which you define a filename for a picture. WIldcards are allowed.

  1. Create an action of the type "Format value" for Genre and set the genre name.
  2. I would still use the tag panel and set the album name (the same would apply to the genre). IMHO it takes much longer to create an action than to select the files that should get the same data, enter the data in the tag panel and save the modification.

These two steps will be a challenge for an Action. Keep in mind an Action uses existing information and does not have "interactive" steps where it pauses and waits for input from the user. So running the Action and expecting a way to update the Album and Genre tags is not something it can do. This is best to do manually in the Tag Panel, then an action can be run to take care of the remaining items in your list.

action of the type "Import cover from file" in which you define a filename for a picture. WIldcards are allowed.

Thank you, it's only the image file that remains, the image usually has the name “folder" but may not be, but the folder only has one image file, so with ‘import cover from file’ could I then dodcify the folder and load the jpg there whatever nane it's called, as there will only be one jpg.

I understand your comment that there are other simpler ways to make the change, but mostly I wanted to understand and learn actions. I created many of my own, mostly by utilizing other actions and adapting them, a great way to learn, I have found.

You could try as
Filename: *.jpg
to import the first found jpg file from the folder of the audio file.

My opinion about actions to set varying data was only to illustrate that not all functions match the motto "one fits all" but should be selected in correspondence to the task.
That is why MP3tag not only has action but also the tag panel, the file list, export, web sources, filters, scripting, the extended tags dialogue.

Sorry decided to delete this

Try a filename with a relative path:
template\*.jpg

Thankyou

Sorry I deleted the post, as you were replying

So if I use

Action of the type "Import cover from file" in which you define a filename for a picture. WIldcards are allowed.

So do I enter the location Where I define the filename :thinking:

Please try the suggested filename with a relative path component.

Ok will do, be a lot easier with mp3tag open, to try the action script.

If I get stuck I'll send a screenshot.

I am not expecting the action to accept any input from me.

I have several albums, so will write an action group for each album. Unless ** below is possible, then could have a single action group which will work for all albums, which would be perfect.

The album artists & genre, will always be the same name, I e Album artist “various” genre “mixed” the artwork will be from the folder.

** The album name will change, unless I can script the album name to equal the folder name of the file :crossed_fingers:

e.g. slow, fast,jazz etc. etc.

Try an action of the type "Format value" for ALBUM
Format string: %_directory%

Hello

Thank you so much, been very helpful, now just need out this into practice, maybe tomorrow.

Why does %_directory% have an _ :thinking:

:+1::+1::+1:

I do not think that the

question will really bring us forward.
A general idea is: that is a non-tag property issued this time by the OS.
Now it would be worthwhile to have a look at the documentation:

Deleted deleted deleted …

everything working perfect, thank you for your help