Re: FMP question -- for Shane Stanley?
Re: FMP question -- for Shane Stanley?
- Subject: Re: FMP question -- for Shane Stanley?
- From: Paul Berkowitz <email@hidden>
- Date: Mon, 30 Oct 2000 23:24:36 -0800
On 10/30/00 10:45 PM, "Shane Stanley" <email@hidden> wrote:
>
On 31/10/00 5:31 PM +1000, Paul Berkowitz, email@hidden, wrote:
>
>
> It's the 'do script' command that brings FMP to the front - i.e. embedding
>
> an FMP script command within AS. This doesn't happen with 'go to' or any of
>
> the other commands I've tried so far.
>
>
I suspect it's the FMP script itself doing it; they may be designed to run
>
only in the foreground.
It could be that the 'Import Records [Restore, No Dialog, "Current File"]'
FM Script command requires the foreground, even without the dialog. (In
AppleScript, I rename every file to be imported as "Current File" each time,
then rename it back to its original after processing.) Anyway, that's one
thing that can't be applescripted except as a 'do menu', which calls up a
choose file window, etc. So it looks as if I'm stuck with the flash-to-front
>
>
>
> BTW, since this AS script is running from Entourage and I don't want the
>
> "Where is FileMaker Pro" window popping up every time FMP doesn't happen to
>
> be open after restart, I've used a version of John Delacour's technique for
>
> app as variable (raw codes with <<class psn >>).
>
>
That's a good workaround when distributing scripts, but you shouldn't need
>
it on your own machine; the script should remember where FMP is. Is this not
>
happening?
>
It's for someone else (a single user). I haven't it yet tried it "cold" on
my machine. But I've been noticing recently that almost every time I'm
working on an Outlook Express script without OE open (I now use Entourage
for emailing) and try to compile it, I get "Where is Outlook Express?" even
though OE has probably been opened on my machine 5000 times. Compiling a
script is not the same as running it, of course. (In fact there are lots of
reports on the Entourage list of OE opening from Rules or Schedules imported
into Entourage which run OE scripts. No "Where is?" dialog there. ) So I
guess it's a script-specific thing. Once a script has learned the first time
(and could be built into it in a 'set-up' process) where the app is, the
"Where is?" window shouldn't come up again, yes? Is that correct? It makes
you wonder what all the fuss was ever about.
So it would be simpler just to use 'tell application "FileMaker Pro"' and
let the window come up on first script run. I actually have five other
choose file or choose folder dialogs with that same 'Where is?" scripted in
on first run set-up. One more unscripted one won't hurt.
--
Paul Berkowitz