Okay so I can get the actual ALR preview box to work with the following setup, now it's just a matter of figuring out how to grab the info with the $ALR function real-time!
Used a pair of Virtual tags:
AlbumDisc = <Album><Disc> (I am using disc to denote albums in my library, so this gives a unique ID for each disc individually)
TimeIFPlayed = $If(<Play Count>>0,<Time>,) (Displays track time if it has been played)
I then set it up in the ALR menu as so:
"AlbumDisc, Sum(TimeIFPlayed)"
I set it to save Sum(TimeIFPlayed) to <NULL> and assigned virtual tag function ID "test"
When I update and preview it does what I expect in the preview window, but I have not figured out how to grab this info in the "Track Information" panel.
I tried the following:
$ALR(<URL>,test) - which is NULL for all but a few random albums? Maybe 6 out of the hundreds of albums
and
$ALR(<AlbumDisc>,test) - which throws an exception for about half of the results and nothing at all for the other half.
Exception text: "$ALR Failed: Exception has been thrown by the target of an invocation."
Am I missing something here? I feel like I'm soooo close!
Edit: I have confirmed for the 1% that displays correctly using <URL> for that it does update after each track is played, however I'm getting an exception with Sub/AddDuration when I try to use it. Going to try to see if I can work around it.
Edit Edit: Trying to see if I can define a Custom Tag for it to save to (that isn't saved to any files so I don't change the modified dates on them), so I can then use the Custom tag in my formulas and
hopefully get around the issue with it throwing exceptions when I try to use the value. It seems to throw an exception when I use the ALR function with any of AT&RT's math functions, even if I go and only use a numerical bit (no :'s) with a standard add or subtract function. :\
However, I can't seem to get it to save to the tag. I set it to save "Sum(TimeIFPlayed)" to custom tag "PlayedTime", but it doesn't seem to be saving. idk if I am missing something.. Here's a screencap: