The Omni Group

Go Back   The Omni Group Forums > OmniFocus > OmniFocus Extras
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
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
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


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 05:07 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.