More > JRiver Media Center 21 for Windows
Global var issue and musings
vagskal:
Thanks for the explanation. I guess that makes sense to programmers, but it confused me. I hope all will be explained in detail when MrC has had the time to update the wiki.
The recent developments on working on an entire group of files looks promising. Maybe someday we can have the global regex search and substitute for at least all items in a list in one file I have come to appreciate in other software (for text manipulation)...
MrC:
I'm working on it, but have tackled a larger undertaking which will make (my) life easier in the future (hopefully).
As to Matt's explanation, you need to understand context a bit when you are working with expressions. The characters:
[Album]
are literally read by MC's expression parser, and replaced with whatever value is inside Album for the given file. As Matt indicates, [Album] is really an abbreviation for the function and argument Field(Album).
When you use [Album] inside some function or as an expression, as in:
Left([Album], 2)
MC reads the expression and parses from the inside of the parens outwards, doing evaluation and interpolation when and where it can and must. So the expression goes through this sequence of transformations (assuming the value of Album is White Album):
Left([Album], 2)
Left(Field(Album), 2)
Left(White Album, 2)
Thus the Left() function is passed the characters White Album to operate on.
The Group*() functions need to know internally which field you want to operate on, because they do different things depending upon the field passed. These two are very different for the reasons mentioned already:
GroupCount([Album]) Wrong
GroupCount(Album) Right
because GroupCount() knows nothing about a field called White Album. The Group*() functions want the name of the actual field, and not its interpolated value.
vagskal:
Thanks, MrC! I understand. It makes perfect sense to programmers (and me when you or Matt explains it). My argument was, however, that it was not intuitive for a regular user. But I hope for more functions to work on several files/items in a list, so it might be good to begin to learn about this difference.
vagskal:
I still cannot get this to work in thumbnail text. Is it supposed to, and how would that be done in that case?
PS. Would it be possible to introduce a pane preset, like for columns? Amending pane expressions in a lot of views with the same panes but different include flies' rules is a lot of work.
Matt:
--- Quote from: vagskal on August 15, 2013, 12:25:17 pm ---I still cannot get this to work in thumbnail text. Is it supposed to, and how would that be done in that case?
--- End quote ---
It works for categories and the new tag window.
If you want it for other places, please provide details and propose what would define the group.
Thanks.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version