• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: set cpu speed
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >set cpu speed (From: email@hidden)

  • Prev by Date: Re: [AS] Getting some Finder windows properties under 10.4.6...
  • Next by Date: check if folder exists in symbolic linked dir
  • Previous by thread: set cpu speed
  • Next by thread: [AS] Getting some Finder windows properties under 10.4.6...
  • Index(es):
    • Date
    • Thread