Re: Another FMP question
Re: Another FMP question
- Subject: Re: Another FMP question
- From: Paul Berkowitz <email@hidden>
- Date: Mon, 06 Nov 2000 18:12:22 -0800
On 11/6/00 5:05 PM, "SemiColon" <email@hidden> wrote:
>
Some commands (do menu) don't work embedded. Some commands inexplicably
>
require being in a Finder tell block (read / write).
Oh-oh. I need read/write and I refuse to use the Finder because it's too
slow and buggy. It's likely to put the script out of whack (but I promise to
try it if I have to.)
>
>
> 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.
But it doesn't. I've found that I can get the applet not to hang FMP if I
'activate' it. But then it hangs again where I tell FMP to do something,
just as John says.
>
>
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"}
Is that an Apple Event step? it doesn't look like any AppleScript step I
know.
--
Paul Berkowitz