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