These forums are now read-only. Please visit our new forums to participate in discussion. A new account will be required to post in the new forums. For more info on the switch, see this post. Thank you!

Flying blind here, because I don't have a Lion installation, but I understand that windows in Lion have a new attribute, AXFullScreen, so scripts should at least be able to detect the full screen condition, and apologize that they are unable to work with it.

Should be something like this (untested) snippet:

Code:

on IsFullScreen()
tell application id "sevs"
tell process "OmniFocus"
set blnFullScreen to false
try
set blnFullScreen to (value of attribute "AXFullScreen" of front window)
end try
return blnFullScreen
end tell
end tell
end IsFullScreen

The issue is that the front-most window in full screen mode is not actually the main document window. Notice how when you move the mouse pointer to the top of the screen to reveal the menu bar, the toolbar slides down in front of the main window.

In most cases, you can change references to the:

Code:

front window

to instead say:

Code:

first document window of default document

That works in normal and full screen modes. The only problem is when you have another document (say your Archive) open and in full screen. My alternative phrasing won't reference that other document.