INTERACT FORUM
More => Old Versions => JRiver Media Center 27 for Windows => Topic started by: wer on March 13, 2021, 02:49:35 am
-
Right now, there are many situations where users need to iterate over a set of files, but MC provides a limited facility for this outside of using global variables, which is beyond the abilities of most. However, there is one tool already built in that does exactly this, and with a small enhancement, it could be more useful.
This is the "Fill Track Numbers From List Order" tool.
Right now, the tool can increment only the Track # or Episode fields, and it can optionally restart at 1 only when the Album or Disc # fields change.
What I propose is making both the "Field" entry box and the "Start Over" entry box both accept typed field names. The start over box should accept a semicolon delimited list.
This would allow the user to store the count in whatever field they want, and reset the count based on whatever fields they want.
For example, if a user wanted to add Movement Numbers to their classical music, they could select a bunch of files, and invoke the tool and fill out:
Field=Movement Number
Start Over=Composition
This would populate incremental movement numbers, starting over at 1 each time the Composition field changed.
This enhancement would come in extremely handy in a variety of situations. The internal logic would stay the same (other than validating the fields entered) but the tool would be much more flexible. An example of the new dialog filled out with current defaults would look like the attached.
-
We'll look at it. Thanks for the suggestion.
-
+1: this would be great for a variety of purposes. "Fill track numbers from list order" is one of the tools I use most in MC, so having it expanded to include other fields would be great.
-
+1 and it would be nice if there was a way to use the "start over with" feature in =Counter() too (since I almost always just use that instead of the GUI tool).
-
"Fill track numbers from list order" is one of the tools I use most in MC, so having it expanded to include other fields would be great.
Just FYI, if you don't need the "start over at" functionality (which is a very cool idea) this is easy to accomplish now. Simply select multiple files, edit the field you want (such as [Episode] or whatever) and type =Counter() in as the field value. You can do start-at and increment by as needed: https://wiki.jriver.com/index.php/Miscellaneous_Functions#Counter
-
Thanks, Glynor! That actually helps me with something I'm doing right now!
-
Sure thing. Expression Field Assignment (https://wiki.jriver.com/index.php/Expression_Language#Field_Assignment) is very powerful and useful for things like this, and can do all kinds of clever things.
I made a separate thread discussing this:
https://yabb.jriver.com/interact/index.php/topic,128905.0.html
-
Oh, yes, I'm fully aware of Expression Field Assignment and use it all the time. I just hadn't thought of using Counter() for such. Thanks again for the suggestion.