Re: Calling an Application - Again
Re: Calling an Application - Again
- Subject: Re: Calling an Application - Again
- From: Devon and Cornwall <email@hidden>
- Date: Thu, 15 Feb 2001 11:53:47 -0800
At 6:48 PM +0000 2/15/01, Pier Kuipers wrote:
(I wrote)
>
>tell application "Finder"
>
> set FMPro to name of application file id "FMP3"
>
>end tell
>
>
>
>tell application FMPro
>
> if not (exists <<class cDB >> "my db") then --return
>
> activate
>
> open alias "disk:folderr:my db" given <<class pPAS>>:"mypass"
>
> end if
>
>end tell
>
>
>
>Devon
>
>
Unfortunately, this causes the script to ask "Where is Filemaker
>
Pro", which is exactly what I'm trying to avoid. Am I snookered?
I don't think so. My original idea for this thread was to start
FileMaker by having the Finder launch a dummy db prior to the tell by
variable part. However, further down in your script you hard code the
path to a db (which won't distribute to other machines either), so a
dummy db is really unneeded.
If your script is going to be an applet, getting the path to a db located
with the applet is easy. Then have the Finder open the db using FileMaker.
Tell application "Finder"
open file "path:from:applet path" using application file id "FMP3"
end tell
Now throw in your* tell by variable (not mine - I should have known
better) to do what you want with the db.
Devon
--Never post a tell by variable without testing it on another machine.