• 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 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.


  • Follow-Ups:
    • Re: Calling an Application - Again
      • From: Cornwall <email@hidden>
References: 
 >Calling an Application - Again (From: Pier Kuipers <email@hidden>)
 >Re: Calling an Application - Again (From: Devon and Cornwall <email@hidden>)

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