Matt Klein Posted August 22, 2014 Posted August 22, 2014 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
comment Posted August 22, 2014 Posted August 22, 2014 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.
MonkeybreadSoftware Posted September 10, 2014 Posted September 10, 2014 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.
Lee Smith Posted September 10, 2014 Posted September 10, 2014 Why aren’t you asking the developer of he Plugin this question too?
Recommended Posts
This topic is 3983 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now