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.