Help Using Actions to split filename

I am trying to learn Action but cannot seem to get this Action to work.

I have a track - (1974) Brent Dowe Don't Get Weary.mp3 It has no tags

I would like to remove the (1974), (in fact if the Action could remove the Year anywhere it appears that would be great.

Brent Dowe is the Artist
Don't Get Weary i s the title of the track

Is it possible to get MP3Tag to extract Artist , Title from the Filename and put them into the relative tag field or will I have to do it manually.

Alos is there anywhere i could find some training/examples of Actions etc please.

Thanks in advance for any help.

I would not use an action but the function Convert>Filename-Tag to get data from the filename.

More about this function can be found in the documentation:

If that is an accurate representation of the filename and you want to get the artist and title, then try:
Pattern: (%dummy%) %title%
(Why do you want to delete the year? It is very tricky to find the correct year for a file, once you have deleted it)
If you change your mind:
Pattern: (%year%) %title%

The problem with this filename is that there is no decent separator between the artist and the title.
But with the suggested mask you get at least the field TITLE.
You could then, if the data for ARTIST always consists of 2 words, use an action of the type "Guess value"
Source: $regexp(%title%,(.*?) (.*?) (.*),$1 $2==$3)
Target string: %artist%==%title%

Thanks your answer is very much appreciated

Thanks for your reply, just one thing that is confusing me the the use of ==

what does this mean in Target string: %artist%==%title%

And in Source: $regexp(%title%,(.*?) (.*?) (.*),$1 $2==$3)

Thanks for any help

That looks like magic, doesn't it?
But it is actually quite trivial: I just tried to insert a unique separator between the string parts.
In the regular expression there are the first 2 words and then the rest of the string with variable length.
The regular expression does nothing but to create a string which contains these parts plus the unique separator. And I thought that there are very few artists and titles that contain these == which would make them a good unique separator.

Or to cut this short: you could use anything else from which you know that that combination is not part of the data in the fields.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.