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

Click here to return to the 'Making it work correctly, part deux' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Making it work correctly, part deux
Authored by: Algorythmn on Feb 18, '02 05:59:49PM
Ok, the main thing required to make the AppleScripts work as-is is to have AppleScript 1.8+, which adds the "do shell script" command. 1.8.1 comes w/OS X 10.1.2 and 1.8 w/the December 2001 Developer Tools Update.

The other thing I'm taking advantage of is removing the need to enter a password when using 'renice', which I found info for in another tip. Unfortunately, you have to use the rather unfriendly 'vi' editor for this part. If you haven't used 'vi' before, I suggest opening a Terminal window and typing "man vi" to get the command-keys down. Or you can view this webpage:

man: vi

Here's what to do in Terminal ( [...] = vi command-keys to enter ):

1) type:
sudo visudo
2) enter your password when prompted

3) move to the last line [j or down-arrow] and add this line [o]:
%admin ALL=NOPASSWD: /usr/bin/renice
4) hit escape to leave input-mode and save the file [:w]

Once this is done, admins can use "sudo renice" without having to enter a password.

If you're still having problems, you're welcome to email me and let me know what it's complaining about.

[ Reply to This | # ]