|Jan 6, 2006, 06: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, 07: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|
|disabling bluetooth using applescript in mavericks||festermonkey||Mac Programming||4||Apr 30, 2014 07:35 PM|
|Disabling Single User Mode 10.6.8||Macman671||Mac Basics and Help||3||Oct 15, 2013 10:15 AM|
|Issue with disabling UITableView custom cell from indenting while in editing mode||ord6||iPhone/iPad Programming||6||Mar 9, 2013 01:17 PM|
|Mountain Lion Nap Mode with 2010 MBP and SSD||crose01||OS X 10.8 Mountain Lion||1||Aug 8, 2012 11:56 PM|
|Does Air Server work in power-nap mode?||Nova Sensei||MacBook Air||2||Aug 2, 2012 01:54 AM|
All times are GMT -5. The time now is 02:23 AM.