August 22, 201411 yr I'm wondering if anyone knows if the plug-in API returns the script result when calling a script from a plug-in. I know you can pass parameters, but I'm wondering if you call a script with a plug-in and that script has an Exit Script[] step in it that includes a script result, does the API return that script result? I checked several plug-ins that have functions for calling scripts in FM databases and they don't include a function for getting the script result so I imagine the answer is no, but I thought I should ask the question before assuming. I have a long knowledge of using plug-ins, but the API is a mystery to me hence the question. Thanks
August 22, 201411 yr I don't know the answer (never having tried to write a plugin), but I would like to point out to you that the script result is not a property of any particular script. Script result is a global register that any script can write to (erasing previous contents) when exiting. The contents of the register are accessible at all times by using the Get ( ScriptResult ) function.
September 10, 201411 yr Plugin calls are asynchronously. The plugin api puts the script call on a todo list which is done when plugin call finished. So you have no way to get result as far as I know.
Create an account or sign in to comment