Want to highlight a helpful answer? Upvote!

Did someone help you, or did an answer or User Tip resolve your issue? Upvote by selecting the upvote arrow. Your feedback helps others! Learn more about when to upvote >

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Automatic Graphics Switching using AppleScript.

Hello,

I've tried a bunch of scripts, it doesn't seem to be working.


tell application "System Preferences"

if it is running then

quit

delay 0.5

end if

end tell

tell application "System Preferences"

set current pane to pane id "com.apple.preference.energysaver"

end tell

tell application "System Events"

tell process "System Preferences"

(the problem lies here)


end tell

end tell


To toggle that automatic graphics switching checkbox, what logic should be written for Mac 10.14 that is, because most of the solutions I've come across are for 10.8 or below.

MacBook Pro with Touch Bar

Posted on Aug 19, 2019 9:27 AM

Reply
Question marked as Best reply

Posted on Aug 19, 2019 12:05 PM

I haven't a MacBook Pro so I can't try it. Look if the solution provided in this thread is useful: https://apple.stackexchange.com/questions/362502/how-can-i-toggle-automatic-graphics-switching-using-terminal

2 replies

Automatic Graphics Switching using AppleScript.

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.