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


Click here to return to the '10.5: Enable nap mode in 10.5 on G4 MDD systems' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.5: Enable nap mode in 10.5 on G4 MDD systems
Authored by: theusjones on Nov 16, '07 12:05:27PM

So this is for a single CPU MDD machine then?


Adding this line to the script ought to do it:

click radio button "Single CPU" of radio group 1 of window "Hardware"


Which makes the script go like so:

tell application "System Preferences"
activate
set current pane to pane "Hardware"
tell application "System Events"
if not UI elements enabled then
display dialog "GUI Scripting is not enabled. Enable?"
set UI elements enabled to true
end if
tell application process "System Preferences"
set napModeBox to checkbox 1 of group 1 of window "Hardware"
if value of napModeBox is 0 then
click napModeBox
end if
click radio button "Single CPU" of radio group 1 of window "Hardware"
end tell
end tell
close the first window
end tell


That should do. I've got no single CPU MDD to test this on. Seems like the preference panel isn't rightly indicating how many CPUs are in use. When I select single CPU mode, the next time I bring up the panel it shows dual mode again. You say you can tell by whether the machine eventually crashes. If so, post. Good luck.



[ Reply to This | # ]