Cycle between bases in Programming Calculator mode

I use the Programming mode in Calculator.app and often find myself moving to the mouse to switch between octal, hex, and decimal modes. I wrote the two following Applescripts to cycle forward and backward between bases and use Butler to bind them to Command+D and Command+Shift+D.

Cycle forwards:

tell application "System Events"   tell application process "Calculator"     repeat with i from 1 to 3       if the value of radio button i of radio group 1 of group 2 of window "Calculator" is 1 then         click radio button ((i mod 3) + 1) of radio group 1 of group 2 of window "Calculator"         exit repeat       end if     end repeat   end tell end tell
Cycle backwards: ...

Add to digg Add to Reddit Add to Slashdot Email this Article Add to StumbleUpon

Source: http://feeds.macosxhints.com/click.phdo?i=4073435e2e2849debbeac355fe57a2c4

mac computer store mac help desk apple news articles refurbished mac store