• 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
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Calling an application


  • Subject: Re: Calling an application
  • From: Andrew Wylie <email@hidden>
  • Date: Sun, 11 Feb 2001 13:14:38 +1300

>From: "Marc K. Myers" <email@hidden>
>Subject: Re: Calling an application
> "The extra layer of "tell...end tell" with the application's name is
> there so the compiler can know what application it's compiling the
> commands for. It should have no effect at run time."

> Do you see the point now? You can have any version of the application
> with any name installed on the computer that's running the script and it
> will still work as long as the application has the right creator code.

I expected the user would be prompted to locate the application if the name
differed, not for AS to miraculously change it
I do note however this
method fails at 'launch application appPath' returning -1713 if the app is
located on a desktop other than the startup disk.
Is there any advantage over the simpler

----------------------------------------------------------------------------
tell application "Finder" to open application file id "ASRe"
tell application "Apple Software Restore"
[Do Stuff]
end tell
----------------------------------------------------------------------------
which doesn't fail in this situation?

_____________________________ Andy


  • Follow-Ups:
    • Re: Calling an application
      • From: Emmanuel <email@hidden>
  • Prev by Date: Re: A quick one (View of a Finder window)
  • Next by Date: Re: Listing apps in launch order
  • Previous by thread: Re: Calling an application
  • Next by thread: Re: Calling an application
  • Index(es):
    • Date
    • Thread