More > JRiver Media Center 20 for Windows

Examples of the new LOAD and SAVE functions?

<< < (7/7)

vagskal:
Yes, MrC. The cleverness (I hope that is an English word) of the expression engine surprised me as well. I would not mind escaping each function that is part of a variable name.

BTW Do you, or anyone else, know what this restriction actually means?

--- Quote from: Matt on April 25, 2012, 04:44:50 pm ---Next build:
Changed: Expression variables used with Load(...) and Save(...) are global, and valid for the run of the program.

--- End quote ---

MrC:

--- Quote from: vagskal on April 27, 2012, 12:44:52 pm ---BTW Do you, or anyone else, know what this restriction actually means?

--- End quote ---

I presumed it meant until the program closes, and the vars are not saved to disk in any way.  They don't exist when the program starts (unlike field data maintained in the on-disk DB).  They are re-calculated when first referenced.

vagskal:
Thanks!


--- Quote from: MrC on April 27, 2012, 12:52:04 pm ---They are re-calculated when first referenced.

--- End quote ---

Aha, and that is why you suggested a display rule for the relevant views that referenced those fields. I see. Clever!

vagskal:
These global variables are really useful!

I have since long searched for an easy way to tag my cover art files (folder, back, booklet, inside, inlay & CD) stored in the audio album folder with [Album], [Album Artist], [Date] fields etc. that correspond to fields for the audio files in that folder to use them in all media views (my file structure is not robust enough to do this from file paths, and I like to keep the paths intact).

This is now possible in an all media view by making expression columns with expressions like
if(IsEmpty([Album]),,Save([Album],varAlbum[Filename (path)],1))
and clearing in the cover art files all values in the referenced fields ([Album] in the example). Then it is easy to set the fields in the cover art files to the values in the corresponding audio files with expressions like this
=Load(varAlbum[Filename (path)])

Great! Global values enabled me to create not only, in effect, custom relational fields but also all media views where my cover art is grouped along with the associated audio files.

Thanks!

Navigation

[0] Message Index

[*] Previous page

Go to full version