The Omni Group
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!

Go Back   The Omni Group Forums > OmniFocus > OmniFocus 1 for Mac
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Open Folder / Notes Scripts broken in Lion Full Screen Mode Thread Tools Search this Thread Display Modes
Greetings all,

I've recently upgraded to Lion, but now find that the Open Folder / Notes scripts I was using, the ones written by Jim Harrison, are broken in full screen mode.


I get an error "Click on or in a project, task or note before running this script". When not in full-screen mode, everything works fine.

Does anyone have any ideas?

- SteveN
Yes, some aspect of front window handling in the OF Applescript library seems to be broken for/by Lion's full screen mode.

You will need to send an email to the Ninjas through Help > Send Feedback in the main OF menu.
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:
on IsFullScreen()
	tell application id "sevs"
		tell process "OmniFocus"
			set blnFullScreen to false
				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:
front window
to instead say:
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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
Thread Thread Starter Forum Replies Last Post
Full Screen Mode spacecadet9 OmniFocus 1 for Mac 0 2012-11-19 12:51 AM
Full Screen Mode (Lion) Bemused OmniFocus 1 for Mac 15 2011-07-31 08:45 AM
Clipping in Mail Full-Screen Lion npadley OmniFocus 1 for Mac 1 2011-07-28 09:20 PM
Full-screen mode? Handycam OmniWeb Feature Requests 8 2008-11-05 03:19 PM
Full-screen mode marc OmniWeb General 2 2006-04-19 08:16 AM

All times are GMT -8. The time now is 05:17 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.