Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Launch applications by name using Applescript' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Launch applications by name using Applescript
Authored by: bryanchang on Jan 21, '04 02:26:16PM
With AppleScript you don't need to use shell script to launch an App:

set AppName to text returned of (display dialog "Which appliation do you want to start?" default answer "TextEdit")
tell application AppName to activate


[ Reply to This | # ]
Launch applications by name using Applescript
Authored by: subrama6 on Jan 21, '04 03:02:14PM

agreed - but with shell scripts, you don't need to have dialogs. again, the shell script solution is only valuable if you always have a terminal session open. but i do, so i try to avoid uneccessary dialogs.



[ Reply to This | # ]
Launch applications by name using Applescript
Authored by: jdhorner on Jan 22, '04 03:56:11PM

hmm. actually, using the "do shell script" command works no matter if you have terminal open, activated, running, etc...

---

-------
sig? who said anything about a sig?



[ Reply to This | # ]
Launch applications by name using Applescript
Authored by: mistercow on Jan 21, '04 10:33:52PM

One advantage of this method over the shellscript method is that it automatically adapts to making shortcuts.

For example, if you run this script and then type "txt" but don't have an application called "txt" on your computer, it will ask you to choose an application from a list of all applications. You can then select TextEdit, and from then on running this script and typing "txt" will open TextEdit.



[ Reply to This | # ]