Re: App Names?
Re: App Names?
- Subject: Re: App Names?
- From: Mr Tea <email@hidden>
- Date: Wed, 03 Jan 2001 21:29:50 +0000
This from Sal - dateline 3/1/01 6.40 pm:
>
If I want to start an application, how do I
>
know what app name to use? Is it the name of the executable code file?
Yes. You can tell any application to activate (or run if you want it to stay
in the background) using this syntax:
tell application "SimpleText"
activate
end tell
If you are not telling the application to do anything else, you can shorten
this to:
tell application "SimpleText" to activate
With both of these options, the Script Editor may ask you to locate the
application the first time you compile or try to run the script, in which
case you should navigate to and 'open' the relevant app. This will also
correct any spelling errors that may have crept into the application's name
(missing hyphens, trade-mark symbols, etc).
You can also launch an application by telling the Finder to open the
'executable code file' that you want and including the path to the file in
your script... But you don't want to do that.
Mr Tea
--
Brew of the day: Ceylon
References: | |
| >App Names? (From: Sal <email@hidden>) |