|Jan 6, 2006, 05:51 AM||#1|
Disabling 'Nap mode' via AppleScript - problems
So, I want to disable 'Nap mode' automatically on start up on my G5.
I came across the following AppleScript code but can't get it to work!
do shell script "hwprefs cpu_nap=1"
do shell script "hwprefs cpu_nap=false"
Can anyone offer a helping hand?
Love your Mac • 3.06Ghz 24" iMac, 4GB RAM, 2.5TB HDD.
|Jan 7, 2006, 06:25 AM||#3|
Yeah you need to be root user so:
do shell script "sudo hwprefs cpu_nap=false"
But then as Nermal says you are going to need to enter your password... I'm sure there is a way to build it into the script though.
|Thread Tools||Search this Thread|
|thread||Thread Starter||Forum||Replies||Last Post|
|Changing Scrolling Speed with Applescript - Problem||Jolly Jimmy||Mac Programming||2||Dec 8, 2011 06:40 PM|
|Disable the mouse input via AppleScript||Bassir||Mac Programming||2||Aug 2, 2009 07:08 PM|
|Applescript - Problem with Finder's Dupplicate command||cmiorio||Mac Programming||1||Mar 19, 2009 02:07 AM|
|How to Enable/Disable Folder Options Using AppleScript?||Isw||Mac Programming||5||Jan 11, 2009 06:42 PM|
|iChat screen name via AppleScript||kainjow||Mac Applications and Mac App Store||2||Mar 22, 2004 05:41 PM|
All times are GMT -5. The time now is 02:16 AM.