jlr_aet;388503 Wrote: 
> I want an action that will take an ARTIST tag with "The" at the
> beginning and copy it to the ARTISTSORT tag and reformat it to ARTIST,
> The.
> 
> Example:
> ARTIST=The Tragically Hip
> copy ARTIST to ARTISTSORT so that, 
> ARTISTSORT=Tragically Hip, The

I have one that does this, except that it doesn't bother to tack the
'The' back onto the end.  I think it would be easily added, though. 
It's actually an 'action group', according to Mp3tag nomenclature -
consisting of more than one action.

First, create a new action group and give it a name.

Then within that action group, create two actions:

1. Copy ARTIST to ARTISTSORT:

- Create new action of Action type: Format value
- Field: ARTISTSORT
- Format string: %artist%

2. Remove leading article (the, el, los, etc.):

- Create new action of Action type: Replace with regular expression
- Field: ARTISTSORT
- Regular expression: ^(the|el|los|la|las|le|les)\s+(.*)$
- Replace matches with: $2
- Leave 'case-sensitive comparison' unchecked

You can add or remove articles from the list in parentheses, separating
them by vertical bar characters.  To tack the article back onto the end
of ARTISTSORT, I believe the 'Replace matches with' would just be
changed to:

$2, $1

> Finally is there any documentation on the web that explains the
> programming for the actions, because when i look at it not a lot of it
> makes sense.

Not that I know of.  The built-in Mp3tag Help (html format) has a lot
of info under Configuration/Actions and under 'Scripting functions'. 
There are also FAQs and sticky posts in the Mp3tag forums for common
action groups for performing common tasks.  You can learn a lot from
those examples.


-- 
JJZolx

Jim
------------------------------------------------------------------------
JJZolx's Profile: http://forums.slimdevices.com/member.php?userid=10
View this thread: http://forums.slimdevices.com/showthread.php?t=58706

_______________________________________________
ripping mailing list
[email protected]
http://lists.slimdevices.com/lists/listinfo/ripping

Reply via email to