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


Click here to return to the 'Two observations' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Two observations
Authored by: macubergeek on Jun 13, '03 09:15:35AM

Ok two observations, one somewhat obvious and one not so obvious.
1. the best way to copy an past this script from the macosx hints webpage is to paste it into a Tex-Edit new document and then use tools menu to change the formatting Mac -> Unix.
do chmod 700 filename and yer done.

2. This script is a good example of how somethings are easier done in shell rather than applescript.
Here's how do do this same script in shell (assumes you have apple's X11 installed):

xterm -e yourcommand
ie:
xterm -e top -u



[ Reply to This | # ]
Yes, except...
Authored by: ExecutiveEditor on Jun 13, '03 10:13:12AM

...this was never meant to be a shell script, and I don't want to use xterm and X11. I want to use iTerm in conjuction with OnMyCommand, a remarkable little freeware contextual menu utility that is one of the best things about OS X. Even though I use the terminal extensively, OnMyCommand reduces my need to turn to the command line.

Therefore, you don't need to make a shell script; all you need to do is, first, read the hint so that you'll understand why you would do this : ) (if you don't use OnMyCommand or iTerm, this hint isn't for you); second, copy the text and paste it into a new command in OMCEdit; third, insert whatever shell command you want to run.



[ Reply to This | # ]
oh ok...
Authored by: macubergeek on Jun 14, '03 07:52:00AM

I must admit I've never used OnMyCommand before...so I'm clueless there..I'll download it from Versiontracker and give it a whirl...thanks for the redirect.



[ Reply to This | # ]