I have a number of Actions defined that I'd like to be able to use on different kinds of files - mp3, flac, ape, ogg, etc.
Unfortunately, the tag names differ in the different file types. Using the suggestion of someone in these forums, I have some Actions defined with a series of rules like the following:
Format value "ALBUMSORT": $if($eql(%_extension%,flac),%tmp_artistsort%|%year%|%tmp_albumsort%,)
Format value "TSOA": $if($eql(%_extension%,mp3),%tmp_artistsort%|%year%|%tmp_albumsort%,)
It sure would make life easier if there where some type of mechanism where the field name itself could be variable, based upon the file type (or the extension). If this capability exists now, or if there's a way to do the above example with a single rule, then I'd love to hear about it.
This can now be done with the latest Development Build by using scripting functions at both the Source format and the Guessing pattern at the action type Guess values.
For your example, just use these strings:
Source format %tmp_artistsort%|%year%|%tmp_albumsort%
Thanks for the effort Florian. I'm afraid I tried the solution, but didn't find it any easier to use. It was confusing and very difficult to read. Also, for more than two codecs or extensions, the old way was much easier. Hopefully some clear syntax can be devised, perhaps a new type of action.