Perfect! Thank you to everyone who's posted in here, I've learned a lot from your help.It makes no sense to add the [!Log ...] bang to the FinishAction of the folder, for two reasons: the folder is only read once at skin load time by the [Folder] measure, and that measure doesn't have DynamicVariables=1 set on it to allow the values of section variables like [Index] to be accurately provided. I suggest adding the bang to an OnUpdateAction in the [Name] measure, which has dynamic variables enabled, is updated once every #Interval# seconds, and can also provide the (full) path and file name as well, if needed:If you wonder, it's "normal" to get two log messages on skin refresh, because the 1st time will be when the skin is read and the first random is generated via updating [Index], and the 2nd time will be when the FinishAction from [Folder] triggers updating [Index] after the folder is read.
The latter is something that I didn't think when posting the above, so if you want to only get one log message at skin refresh (as it would be expected), just add Disabled=1 to [Index] and [Name] to start with them disabled at refresh time, and !Enable that Random group of measures once the FinishAction of [Folder] occurs:P.S. One effect of the above is that you don't need to add the !Log bang to the mouse click action at all, because updating the Random group of measures in that action already takes care of it (since it implicitly triggers the OnUpdateAction from [Name]). So, the above change will log the desired info on click too, without specifically indicating that in the code.
Statistics: Posted by Mifdy — Today, 5:46 pm