applescript - Exit Full Screen menu bar item

Is it possible to click the Exit Full Screen menu bar item?


I cannot get a reference from Accessibility Inspector nor UI Browser.

MacBook Air, OS X Mountain Lion (10.8.4)

Posted on Aug 2, 2013 5:24 PM

Reply
3 replies

Aug 6, 2013 5:09 AM in response to Pierre L.

That's not exactly what I'm asking for but thanks anyway. That works too.


Eventually I used the AXFullScreen attribute and this script.


tellapplication "System Events" totell (firstprocesswhosefrontmostistrue)

delay 0.05

if front window exists then

tell front window

if value of attribute "AXFullScreen" then

set value of attribute "AXFullScreen" to false

else

set value of attribute "AXFullScreen" to true

end if

end tell

end if

end tell

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

applescript - Exit Full Screen menu bar item

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