Re: Calling an application
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