Re: Another FMP question
Re: Another FMP question
- Subject: Re: Another FMP question
- From: SemiColon <email@hidden>
- Date: Mon, 6 Nov 2000 17:05:09 -0800
At 7:58 AM -0800 11/6/00, Paul Berkowitz wrote:
>
Is it common for the supposed ability to link (or embed) an applescript from
>
FMP to be terminally problematic?
Some commands (do menu) don't work embedded. Some commands inexplicably require being in a Finder tell block (read / write).
>
So I've set the script to run from OSA menu, which works just fine, but
>
takes the extra step of selecting it in the OSA menu after doing the FMP
>
script. (My previous experience with keyboard commands from OSA has not been
>
favorable.) Is this the best solution, short of applescripting all his FMP
>
script steps, which my friend does not want me to do?
If it runs from OSA Menu it should run as an applet if called with Apple Events from FMP as Allen suggested. Oftentimes, you may want FileMaker to do something else after the applet finishes. I use the "do script" command at the end of the script as the last command of the applet for this.
If that fails, maybe you can call OSA Menu from a FMP script AppleScript step using:
+event osaMosaM; {alias "Disk:System Folder:Scripts:Universal Scripts:YourScript"}
;