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

 
Running scripts from OF toolbar - limitations Thread Tools Search this Thread Display Modes
It seems that not all scripts can be successfully run from the OF toolbar.

In another post I reported that static variables lose their state between runs, and here is a script which runs happily from a script editor, but will immediately crash Omnifocus (build 98208) if you try to run it from the toolbar.

Code:
tell application "OmniFocus"
	close every window
	tell default document
		make new document window with properties {focus:{}, search term:""}
	end tell
end tell
I don't recommend that you try this, incidentally.

A better approach is to assign Quicksilver keyboard triggers to particular applescripts. (The script above, for example, runs fine when launched from the keyboard by Quicksilver).

Last edited by RobTrew; 2008-03-08 at 08:44 AM..
 
Quote:
Originally Posted by RobTrew View Post
here is a script which runs happily from a script editor, but will immediately crash Omnifocus ... if you try to run it from the toolbar.

Two years later, in addition to its other limitations, the OF toolbar script-running mechanism still seems to retain a crashing defect.

The following simple script, which exits gracefully when run from the OF script menu, still instantly crashes OF on my system when run from the OF toolbar ...

Code:
tell application "OmniFocus"
	close every window
end tell
 
This crash is fixed in the most recent sneaky peek build.
 
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Scripts which behave incorrectly when run from OF toolbar RobTrew OmniFocus Extras 1 2010-06-13 12:08 AM
Running Scripts ContinentalOp OmniFocus Extras 2 2009-01-28 10:35 PM
Toolbar scripts: Move to Top/Bottom ptone OmniFocus Extras 4 2008-01-23 07:49 PM
Toolbar scripts don't store properties ptone OmniFocus Extras 1 2008-01-12 07:59 PM
Running scripts in OmniOutliner andyj OmniOutliner 3 for Mac 0 2006-09-01 07:04 AM


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


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