Calling an Application - Again
Calling an Application - Again
- Subject: Calling an Application - Again
- From: Pier Kuipers <email@hidden>
- Date: Thu, 15 Feb 2001 14:37:02 +0000
OK, so I've followed the "Calling an Application" thread with great
interest, and now I am trying to make it work for my own distributed
scripts. Of course I wouldn't be taking part in this forum, had I not
encountered a problem...
I am trying to open a bunch of Filemaker Pro databases (btw, what's
the plural of database?) and would like to use the following code:
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!
Pier.
--
Pier Kuipers
Visual ID
* the Media Asset Management solution *
2 Whitefriars
Aungier Street
Dublin 2
Tel. +353 1 476 7059
Mobile +353 87 294 3063
Fax +353 1 478 1366
ISDN +353 1 602 0754
http://www.visualid.com