You don't mention which OS you are running this on or what version of FMP advanced.
Using FMP advanced 10.3 on Windows XP, SP3
I downloaded your file and tested with the debugger and data viewer up. The debugger correctly stepped through all steps of both the button and script trigger scripts.
And of course after all that the problem was PEBKAC. I wasn't correctly stepping into the triggered script.
However I am still slightly puzzled by the lack of a script result.
Paul Turnbull wrote:
If the triggered script exits with a result then that result will not be seen
This is indeed weird, and I have confirmed it in an independent test of my own:
Get (ScriptResult) does NOT return the result of a triggered script.
Thanks for the information. I tried to download the file, but the link is no longer active.
Can you let us know what findings you discovered? I'll make sure this gets forwarded to the right people.
The link appears to be still active, not sure what's up there. However, it's not relevant as the original problem was not a bug just user error on my part.
There is still the issue of the running script not getting a script result from a triggered script. My experience with Script Results is that the they are passed to the next script in the stack. When script is triggered while another script is running it takes over execution. When the triggered script ends the running script continues. However, if the triggered script exits with a result, a Get ( ScriptResult ) in the running script does not get that result.