Hi people,
I'm preparing a session for the French fmconf in May, and I've made some raw demo material that might solve the problem on the Mac.
What I wanted to do, was to support the fmp7script:// protocol on FileMaker Go ánd on FileMaker Pro and/or FileMaker Pro Advanced 11.
It is not a finalized example, and has been untested, but it tackles the difficult part of the problem: getting iCal to launch the script in FileMaker and pass the parameters supported by the fmp7script protocol.
http://dl.dropbox.com/u/18762341/iCal%2 ... Helper.zip3 files. An example event with a sample URL in it, the calendar file with the script, and the FMScriptHelper application.
The FMScriptHelper application has its plist modified, so it registers itself as the URL handler when you place nto the Applications folder.
It's written in AppleScript, and I did not protect the source code, so you can see how things work.
It parses out the passed URL, and calls the FileMaker script in the calendar file.
FileMaker's AppleScript interface does not support a script parameter yet, so I get the parameter string from the script itself, by sending an event back from the FileMaker script to the FMScriptHelper application.
The global field that receives the parameters is easily configurable through 3 variables: file, table and field.
I then parse out and evaluate the parameter so I get everything nicely assigned, including the $variables.
The rest is up to the FileMaker developer. I think this is modular enough to be useful in an existing Zulu development.
Please let me know in this thread if this works for you. By the time I'm presenting the session, I would like to know if this is really a good solution, and not some unstable hack.
Also, as an alternative, the MBS FileMaker plug-in got 2 new functions to handle these URLs. I tested it, and it works rather well. But I wanted to have a free solution, as FileMaker will probably support the protocol in it's next desktop version.
Peter Wagemans