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 20:29:15 -0800
On 10/30/00 8:54 AM, "David Graham" <email@hidden> wrote:
>
> tell application "Filemaker Pro 5"
>
> tell database "name Of My Database"
>
> do script "NameofFileMakerScript"
>
> end tell
>
> end tell
>
>
>
> Notice that the database remains in the background.
>
>
For a second I thought ... WOW! ... but then I realized that the
>
database is not staying in the background. Also, this script wont run
>
as-is since you must specify "filemaker script" after the "do
>
script". I would really like to find a way to launch a script in a db
>
without bringing it to the front.
Yes, I saw that too. And Jed Verity clued me in on specifying 'FileMaker
script'. Furthermore, FMP itself won't operate in the background as other
apps will. if a script is running which calls on FMP to do something, it
flashes to the front, does its stuff, then retreats to the background again.
It's rather as if you had to call it from a macro like OneClick. It's quite
disruptive if the script is running in the background itself.
I have a script running in Entourage which takes attachments from certain
email messages as they come in, saves and expands them, then gets FMP to
import them as records. But this flashing-to-the-front behavior is too
annoying if you're using the computer to do other things. I'll disable the
Entourage Rule and run it manually on the messages (in their own folder)
when convenient. Too bad, but it still saves most of the trouble.
If anyone (Shane Stanley?) knows a way to get FMP to work in the background
from an applescript, we'd all appreciate knowing about it.
--
Paul Berkowitz