More > JRiver Media Center 20 for Windows
Examples of the new LOAD and SAVE functions?
mark_h:
Been trying for an hour or so and getting nowhere.
save() seems to work but I haven't figured out how to work with load() at all :/
Anybody provide any examples?
MrC:
I just used these last night. Let's say you have a path you use a bunch of times, and want to tidy up your expression, with an audio path (we'll call it AP):
Save(\some\long\audio\path\goes\here, AP)/
IfElse(
IsEqual([Media Type], Audio), Load(AP),
IsEqual([Media Type], Video), d:\movies,
1, NOT CONFIGURED YET
)
mark_h:
Thanks for the example.
So these variables only work inside ONE expression? MEH!
I was hoping these were the globals we have been discussing :'(
Matt:
I added Load(...) / Save(...) for a failed experiment with the expression compiler. I thought these functions might be useful anyway, so left them.
Making the variables global wouldn't be hard, but I'm not clear why you'd do that or how you'd ensure you had set a variable when you expected.
And as a disclaimer, I don't want to open a big new front in expression land for a while.
MrC:
--- Quote from: Matt on April 25, 2012, 11:52:08 am ---... but I'm not clear why you'd do that or how you'd ensure you had set a variable when you expected.
--- End quote ---
FYI: here is mark_h's thread. I think the thread assumes an ordered execution, updating of smartlists, and variable assignment:
1) run smartlist
2) grab some field from single entry in that list
3) assign it to a GV
4) run another smartlist based upon this GV
There's probably a more direct route to solving this particular case.
Navigation
[0] Message Index
[#] Next page
Go to full version