• 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: Sat, 10 Feb 2001 18:17:05 +1300

> From: "Marc K. Myers" <email@hidden>
> Subject: Re: Calling an application
>
> Find out what the signature (Creator Type) for Apple Software Restore
> is. For this example we'll say it's "ASRe". Than call the app like this:
>
> tell application "Finder"
> set appPath to application file id "ASRe" as string
> set appName to name of application file id "ASRe"
> end tell
> launch application appPath
> tell application "Apple Software Restore"
> tell application appName
> [Do Stuff]
> end tell
> end tell
>
> For a number of reasons, the system can find it hard to locate a program
> by its name. It can (almost) always find it by it's signature. 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.

I can't see the point of this Mark and it seems to defeat the purpose
asking for the app at 'tell application "Apple Software Restore"'
why not?

----------------------------------------------------------------------
tell application "Finder" to open application file id "ASRe"
tell application "Apple Software Restore"
[Do Stuff]
end tell
----------------------------------------------------------------------

_____________________________ Andy


  • Prev by Date: Re: Get info without opening a file
  • Next by Date: Could not read the dictionary of the... blah blah.....
  • Previous by thread: Re: Calling an application
  • Next by thread: Re: Calling an application
  • Index(es):
    • Date
    • Thread