Re: set cpu speed
Re: set cpu speed
- Subject: Re: set cpu speed
- From: kai <email@hidden>
- Date: Fri, 21 Apr 2006 18:36:36 +0100
On 21 Apr 2006, at 15:43, email@hidden wrote:
Hi all! I'm a beginner..
I sometimes feel the same way...
what do I have to insert in this script to select menu item
"limited" or "max" for the speed of the cpu popup menu?
tell application "System Preferences"
activate
set current pane to pane "com.apple.preference.energysaver"
end tell
tell application "System Events"
tell process "System Preferences"
tell window "Risparmio Energia"
end tell
end tell
end tell
Try something like this. Apart from the entered option, it should
work with any localization setting. For greater portability, it
should also work with entered integers (1 = hi, 2 = lo).
--------------
on prestazioni_processore to opzione
tell application "System Preferences" to reveal anchor ¬
"Options" of pane "com.apple.preference.energysaver"
tell application "System Events" to tell pop up button 1 of ¬
tab group 1 of window 1 of process "System Preferences"
click
click menu 1's menu item opzione
end tell
end prestazioni_processore
prestazioni_processore to "Limitate"
-- enter index or current language:
-- 1/"Massime"/"Highest"/etc.
-- 2/"Limitate"/"Reduced"/etc.
--------------
---
kai
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden