• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Calling an Application - Again
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Calling an Application - Again
      • From: Devon and Cornwall <email@hidden>
  • Prev by Date: records and usrflists
  • Next by Date: Re: Re: Re-Re-Repeat With question (newbie level)
  • Previous by thread: records and usrflists
  • Next by thread: Re: Calling an Application - Again
  • Index(es):
    • Date
    • Thread