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.
Arnold, I thought you would use the AppleScript functions in my plugin for this?
Unfortunately some clients do not allow the use of plugins.
I'm not familiar with AppleScript much. Can it call scripts with parameters? That seems like a more secure way to enable the same effect: AppleScript talks to narrowly-defined script interface, then the script decides what variables to set within FileMaker.
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:firstname.lastname@example.org/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
Retrieving data ...