Created
October 26, 2020 17:06
-
-
Save Gurpartap/37f6d3f47a6e5320f319fa7b8c466992 to your computer and use it in GitHub Desktop.
Revisions
-
Gurpartap created this gist
Oct 26, 2020 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,20 @@ tell application "System Preferences" quit delay 0.3 launch activate reveal pane id "com.apple.preference.displays" tell application "System Events" tell process "System Preferences" delay 0.3 tell window "LG Ultrafine" click pop up button "Rotation:" of tab group 1 if value of pop up button "Rotation:" of tab group 1 is "Standard" then keystroke "90" & return else keystroke "Standard" & return end if end tell end tell end tell end tell