dougscripts.com

July 27 2011 - 9:44 am

Detect Full-Screen Mode

By the way, I originally asked how full-screen mode might be detected at the AppleScript Users list and AppleScript uber-guru Bill Cheeseman posted this example using Safari, but it should work with any other app in Lion (I use it with iTunes, for example):

tell application "System Events"
	tell process "Safari" -- or whatever
		get value of attribute "AXFullScreen" of window 1
	end tell
end tell
display dialog result as text


One more thing: Stick a try block around it so Snow Leopard users don't get a jolt.

Site contents © 2001 - 2024 (that's right: 2001) Doug Adams and weblished by Doug Adams. Contact support AT dougscripts DOT com. About.
All rights reserved. Privacy.
AppleScript, iTunes, iPod, iPad, and iPhone are registered trademarks of Apple Inc. This site has no direct affiliation with Apple, Inc.
The one who says "it cannot be done" should not be interrupting the one who is doing it.