Skip to main content
FIxed some grammar and a typo
Source Link
tubedogg
  • 15.3k
  • 4
  • 41
  • 61

Using AppleScript to click radio button items in Windowsbuttons

I think this is a bug in Mac OS X: with a dual monitor setup, the Dock switches to the 2nd (not main) monitor from time to time.

To fix this issue, I open the Dock, and click both the "Left" and "Bottom" radio buttons for the "Position on Screen" item.

I need to automatizeautomate this with AppleScript. I could open the Dock using this script, but I'm not sure how to click the Left and then Bottom radio button in AppleScript.

tell application "System Preferences"
    set the current pane to pane id "com.apple.preference.dock"
    activate
end tell

I tried to add some code in the script, but it does not work.

click radiobutton "Left"

enter image description here

Using AppleScript to click radio button items in Windows

I think this is a bug in Mac OS X: with a dual monitor setup, the Dock switches to the 2nd (not main) monitor from time to time.

To fix this issue, I open the Dock, and click both the "Left" and "Bottom" radio buttons for the "Position on Screen" item.

I need to automatize this with AppleScript. I could open the Dock using this script, but I'm not sure how to click the Left and then Bottom radio button in AppleScript.

tell application "System Preferences"
    set the current pane to pane id "com.apple.preference.dock"
    activate
end tell

I tried to add some code in the script, but it does not work.

click radiobutton "Left"

enter image description here

Using AppleScript to click radio buttons

I think this is a bug in Mac OS X: with a dual monitor setup, the Dock switches to the 2nd (not main) monitor from time to time.

To fix this issue, I open the Dock, and click both the "Left" and "Bottom" radio buttons for the "Position on Screen" item.

I need to automate this with AppleScript. I could open the Dock using this script, but I'm not sure how to click the Left and then Bottom radio button in AppleScript.

tell application "System Preferences"
    set the current pane to pane id "com.apple.preference.dock"
    activate
end tell

I tried to add some code in the script, but it does not work.

click radiobutton "Left"

enter image description here

Using ApplescriptAppleScript to click radiobuttonradio button items in windowsWindows

I think it'sthis is a bug in Mac OS X;X: with a dual monitor setup, the Dock switches to the 2nd (not main) monitor from time to time. To

To fix this issue, I open the Dock, and click both the "Left" and then "Bottom" radio button in Position on Screenbuttons for the "Position on Screen" item.

I need to automatize this with AppleScript. I could open the Dock using this script, but I'm not sure how to click the Left and then Bottom radio button in ApplieScriptAppleScript.

tell application "System Preferences"
    set the current pane to pane id "com.apple.preference.dock"
    activate
end tell

I tried to add some code in the script, but it does not work.

click radiobutton "Left"
 

[![enter image description here][1]][1] [1]: https://i.sstatic.net/sXN1P.pngenter image description here

Using Applescript to click radiobutton items in windows

I think it's a bug in Mac OS X; with dual monitor setup, the Dock switches to 2nd (not main) monitor from time to time. To fix this issue, I open the Dock, and click the "Left" and then "Bottom" radio button in Position on Screen item.

I need to automatize this with AppleScript. I could open the Dock using this script, but I'm not sure how to click the Left and then Bottom radio button in ApplieScript.

tell application "System Preferences"
    set the current pane to pane id "com.apple.preference.dock"
    activate
end tell

I tried to add some code in the script, but it does not work.

click radiobutton "Left"

[![enter image description here][1]][1] [1]: https://i.sstatic.net/sXN1P.png

Using AppleScript to click radio button items in Windows

I think this is a bug in Mac OS X: with a dual monitor setup, the Dock switches to the 2nd (not main) monitor from time to time.

To fix this issue, I open the Dock, and click both the "Left" and "Bottom" radio buttons for the "Position on Screen" item.

I need to automatize this with AppleScript. I could open the Dock using this script, but I'm not sure how to click the Left and then Bottom radio button in AppleScript.

tell application "System Preferences"
    set the current pane to pane id "com.apple.preference.dock"
    activate
end tell

I tried to add some code in the script, but it does not work.

click radiobutton "Left"
 

enter image description here

Source Link
prosseek
  • 5.7k
  • 13
  • 53
  • 85

Using Applescript to click radiobutton items in windows

I think it's a bug in Mac OS X; with dual monitor setup, the Dock switches to 2nd (not main) monitor from time to time. To fix this issue, I open the Dock, and click the "Left" and then "Bottom" radio button in Position on Screen item.

I need to automatize this with AppleScript. I could open the Dock using this script, but I'm not sure how to click the Left and then Bottom radio button in ApplieScript.

tell application "System Preferences"
    set the current pane to pane id "com.apple.preference.dock"
    activate
end tell

I tried to add some code in the script, but it does not work.

click radiobutton "Left"

[![enter image description here][1]][1] [1]: https://i.sstatic.net/sXN1P.png