Re: FMP question -- for Shane Stanley?
Re: FMP question -- for Shane Stanley?
- Subject: Re: FMP question -- for Shane Stanley?
- From: Shane Stanley <email@hidden>
- Date: Tue, 31 Oct 2000 21:06:53 +1100
On 31/10/00 6:24 PM +1000, Paul Berkowitz, email@hidden, wrote:
>
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
Depending on how much data there is, and how much you're concerned about
time. AS is slower to do the same thing, but it also lets you build in all
sorts of checks.
>
>>
>
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.
My guess is that Entourage has the same creator type as OE. The script looks
first to see if OE is running, sees an app of the right type but wrong name,
and asks the user to sort out the confusion.
>
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?
Shouldn't, yes <hedge><hedge>.
>
It makes you wonder what all the fuss was ever about.
I guess the fuss is about someone choosing the wrong app the first time; it
effectively makes a script unusable.
I always advise people to have the relevant app running before running a
script for the first time (this is particularly so for apps like
QuarkXPress, where a lot of stuff is version dependant); for those who read
the instructions, it works fine. For the rest -- to be brutal, they're
inconvenienced more than me.
Of course, if your job is to support lots of users, the equation tilts the
other way.
And I believe OS 9 improves things, although I haven't really tested it.
>
>
So it would be simpler just to use 'tell application "FileMaker Pro"' and
>
let the window come up on first script run.
Yes -- or tell them to have it running already.
--
Shane Stanley, email@hidden