|
|
Making it work correctly, part deux
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 visudo2) 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/renice4) 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. |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysNo new commentsLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.39 seconds |
|