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.

Link: http://forums.omnigroup.com/showthre...t=10863&page=3

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?

Regards,
- 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:
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.
__________________
Cheers,

Curt
 
 


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 01:51 AM
Full Screen Mode (Lion) Bemused OmniFocus 1 for Mac 15 2011-07-31 09:45 AM
Clipping in Mail Full-Screen Lion npadley OmniFocus 1 for Mac 1 2011-07-28 10:20 PM
Full-screen mode? Handycam OmniWeb Feature Requests 8 2008-11-05 04:19 PM
Full-screen mode marc OmniWeb General 2 2006-04-19 09:16 AM


All times are GMT -8. The time now is 05:00 AM.


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