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 09:51:37 -0800
At 2:37 PM +0000 2/15/01, Pier Kuipers wrote:
>
tell application "Finder"
>
open application file id "FMP3"
>
set FMPro to name of result
>
end tell
>
tell application FMPro
>
activate
>
if not (exists window "Database_Name") then
>
try
>
open file "Filename" given <<class pPAS>>:"323896"
>
on error
>
display dialog "Error yada yada"
>
end try
>
end if
>
end tell
>
>
This would work extremely well, if it weren't for the fact that
>
Filemaker launches with an "Open" dialog box. The script hangs until
>
someone cancels this dialog. So the problem needs to be solved by a)
>
dismissing the dialog or b) changing the way in which the script
>
calls the app.
>
Suggestions for workarounds greatly appreciated!
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
--watch the wrap
--the above script contains "<<" and ">>", they represent chevrons
--(ASCII characters 199 and 200) and must be replaced with those
--characters in order for the script to work.
Devon
--Never wear brown shoes with a blue suit.