A script to set CPU processing speed

Mar 03, '05 07:51:00AM

Contributed by: Kalak

After wanting this for years, I finally looked at the AppleScript menu icon, and was driven to find out how to do this myself. Time to give back a tip when I've used so many...

Many times, I'll want to change my CPU speed on my notebook to suit my current work, especially when running on battery. Web browsing is not very CPU intensive, while playing games usually is. So I've created an AppleScript to switch to the "Highest" CPU setting. Actually, I have three settings -- Reduced, Highest and Automatic. GUI Scripting must be enabled.

[robg adds: This script works as described. To make three versions, you'll want to change two lines:

click menu item "Highest" of menu "OtherViews" of pop up button 1
and
display dialog "CPU Speed set to Highest" buttons {"Ok"} giving up after 2
Change Highest in the first line to either Automatic or Reduced, and then change the message in the last line to reflect that choice. Save the modified script with a new name. To make the scripts easy to get at, save them in your user's Library: Application Support: Scripts folder. They'll now appear under the Script icon in the menubar (which can be enabled in the Applications: AppleScript folder).]

Comments (17)


Mac OS X Hints
http://hints.macworld.com/article.php?story=200503020315453