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

Default window doesn't open after running Applescript Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
I'm having an issue with OmniFocus's behavior after running an Applescript. Here's what happens to me on multiple machines:

1) Open an Omnifocus window. Close it with Command-W or the red button. Note that clicking on the dock icon brings your Omnifocus window back to the foreground.

2) Execute the following Applescript with the Omnifocus window closed. This is the simplest Applescript that I can reproduce the problem with:

tell application "OmniFocus"
	tell the default document to tell the front document window
		set perspective name to "Inbox"
	end tell
end tell
3) Click on the Omnifocus icon in the dock. The document no longer opens and I need to open a new window with File->New Window or Command-Option-N to use the app again. Quitting the application and relaunching fixes the behavior until the script is run again.

Am I doing something wrong in my Applescript, or is this a bug in Omnifocus? Is there any sort of workaround? I want to be able to use this to periodically export data, so running it with the window open isn't always possible.

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
Thread Thread Starter Forum Replies Last Post
FAQ: Installing & running an OF applescript RobTrew OmniFocus Extras 33 2013-05-18 11:36 PM
Can All Notes Always be Open by Default themothertucker OmniFocus 1 for Mac 10 2009-03-29 09:57 PM
Open Perspective by Default Shutter OmniFocus 1 for Mac 8 2008-10-31 02:51 PM
How to open OF with a default Perspective? GreenLorax OmniFocus 1 for Mac 5 2008-01-14 11:14 AM
How to set default window location? migueld OmniWeb General 5 2006-11-20 09:57 AM

All times are GMT -8. The time now is 12:27 AM.

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