Currently the only direct way to return any results from AppleScript to FileMaker is writing the value into a (global or regular) table field.
I'd like to see a syntax, where AppleScript can set global or local variables.
Currently the only direct way to return any results from AppleScript to FileMaker is writing the value into a (global or regular) table field.
I'd like to see a syntax, where AppleScript can set global or local variables.
You can set $vars and/or $$vars with recent versions of FileMaker using AppleScript and the FMP URL Protocol:
http://www.twdesigns.com/fmp_url_protocol/
1. Call a URL from AppleScript
open location "fmp://user_name:pw@10.10.10.10/ThemeStyleRepo?script=_Called_from_AS&$foo=hello_world"
...see the “FMP URL protocol” link for details.
2. While you can only (tested here) set $vars using the FMP URL Protocol, you can Set Variable [ $$var ; Value: $var ] in your FileMaker script (if needed).
Tony White
Arnold, I thought you would use the AppleScript functions in my plugin for this?