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 Extras
FAQ Members List Calendar Today's Posts

 
Strange Spaces Applescript bug Thread Tools Search this Thread Display Modes
Hi folks--

This is the way you're supposed to get the front window when scripting OmniFocus.

Code:
tell front document of application "OmniFocus"
	set theWindow to document window 1
However, what I learned today the hard way is that if you're running from the Script Editor, AND you have the window with your script in it located in a different one of Leopard's Spaces than OmniFocus is running in, this will not reliably return the front window.

Don't know why that is, but I tested it several times and it seems to be true.

Maybe I'll save someone some time.

Best,
David
 
 




Similar Threads
Thread Thread Starter Forum Replies Last Post
A strange new bug in OF applescript [A: Script Debugger issue, not OF's.] RobTrew OmniFocus Extras 4 2011-09-12 03:59 PM
Spaces in Leopard albo OmniPlan General 3 2011-01-25 06:23 AM
1.8.1 broke Spaces? JakiChan OmniFocus 1 for Mac 4 2010-10-11 03:23 PM
OW switching spaces jem OmniWeb General 13 2008-09-10 10:12 AM
Spaces support rzigweid OmniWeb Feature Requests 15 2008-03-09 09:57 AM


All times are GMT -8. The time now is 04:40 PM.


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