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 Search Today's Posts Mark Forums Read

 
Full Screen and "front document" Thread Tools Search this Thread Display Modes
For the AppleScript wizards out there, I'd like to highlight an item from our OmniFocus 1.9.4 release notes:

Quote:
Worked around an issue in when using full-screen mode on OS X Lion which would cause certain AppleScripts attempting to target the front window to fail.

If you are the author of a script which uses the following idiom:

Code:
tell application "OmniFocus"
    tell front document
        tell (first document window whose index is 1)
            ... 
        end tell
    end tell
end tell
Please discontinue using it. This idiom will fail in situations other than full-screen mode on OS X Lion. The correct template to use is:

Code:
tell application "OmniFocus"
    tell first document window of front document
      ...
    end tell
end tell

Last edited by Lizard; 2011-10-26 at 02:44 PM.. Reason: formatting
 
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
"Show full hierarchy" setting does not work vocaro OmniFocus 1 for Mac 10 2009-10-13 07:02 AM
Scrolling crash in "Nearby" screen showing Next Actions [Reproduced; working on fix.] curiousstranger OmniFocus for iPhone 11 2009-06-02 05:14 PM
"Unable to lock document. Another application had the OmniFocus document locked." drumshanbo OmniFocus 1 for Mac 7 2008-09-18 09:31 AM
Feature request - full hierarchy & resizable "project" column dondo OmniFocus 1 for Mac 4 2008-08-13 04:28 PM


All times are GMT -8. The time now is 08:56 PM.


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