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


Click here to return to the 'An AppleScript that may give OS X a speed boost' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
An AppleScript that may give OS X a speed boost
Authored by: robmorton on Apr 01, '03 02:25:22PM

Well, the part I don't get is that tell application "Terminal" is not needed. It just starts for no apparent reason. do shell script ... does not need a Terminal window to be open. Just seemed odd to me. Of course a straight out shell script would be quicker, but these could be added into the Login items by anyone with no Terminal experience.



[ Reply to This | # ]
Yep
Authored by: nick2588 on Apr 04, '03 12:38:56AM
Yes, the tell block is unnessessary in this script, because do shell script is NOT functionality provided by Terminal. The functionality is provided by Standard Additions, and therfore you can use do shell script without a tell block of any kind.

[ Reply to This | # ]
Yep Confirmation
Authored by: nick2588 on Apr 04, '03 12:41:04AM
From http://www.apple.com/applescript/terminal/:

"Note that it is not necessary to use the Terminal application to execute shell scripts. The "Do Shell script" command is part of the pre-installed Standard Additions scripting addition and can be used to communicate with the UNIX shell directly."

[ Reply to This | # ]