• 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
Re: Calling an Application - Again
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Follow-Ups:
    • .cgi's, forms, uploads and more.
      • From: "Charles Overy" <email@hidden>
References: 
 >Calling an Application - Again (From: Pier Kuipers <email@hidden>)

  • Prev by Date: Re: Accessing a Record by variable--the solutions
  • Next by Date: Re: 'explode' quark document into pages
  • Previous by thread: Calling an Application - Again
  • Next by thread: .cgi's, forms, uploads and more.
  • Index(es):
    • Date
    • Thread