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 > OmniPlan > OmniPlan General
FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
How to crash OmniPlan with one line of Applescript Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
If you want to automatically close a large number of windows opened in OmniFocus, you might be tempted to write a single line of Applescript like this:

Code:
tell application "OmniFocus" to close windows
This does indeed work well if you run it from the OmniFocus script menu, or from a script editor.
If, however, you install a button for it on the OF toolbar, this innocuous script becomes a danger - it is likely (more than 7 times out of 10 on my system, for example) to crash OF completely.

This is symptomatic of a general defect in the applescript-launching mechanism of omni toolbars - some scripts behave incorrectly when run from the toolbar, others exit with error messages, even though they run perfectly well from the application's script menu.

I first drew attention to this particular crasher two years ago.
As the toolbar applescript-launching mechanism has again proved frustrating with a couple of recent scripts, I tested the issue again in the last few days. Troy has just written to say: this is a known issue that we have filed in our database. I'll add your vote to the list so we know you'd like to see it fixed!

Analogous scripts also crash OmniPlan and OmniOutliner (I had thought OmniOutliner was fixed, but it has just crashed on me ...).

If, like me, you find it helpful to install applescripts on the OF toolbar, find crashing disconcerting, and would like to see this issue (and the general launching of applescripts from the toolbar) fixed, do use Help > Send Feedback in the OF menu, and let the OF development team know ...

--

Last edited by RobTrew; 2010-06-17 at 11:31 PM.. Reason: Had thought OmniOutliner was fixed, but exception = 0x00000001, code = 0x00000001;0xc613584b;
 
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Applescript and Omniplan olmedilla OmniPlan Extras 2 2013-11-23 06:51 AM
OmniPlan to TaskPaper AppleScript psidnell OmniPlan Extras 0 2012-02-05 09:34 AM
Applescript - 2 problems in linking two shapes with a line RobTrew OmniGraffle General 4 2011-06-09 10:38 AM
Export from the command line or AppleScript for specific contexts/projects? xuinkrbin. OmniFocus Extras 1 2010-09-30 03:21 PM
Applescript first steps. Joining shapes with a curvy line ivanrostas OmniGraffle General 0 2007-10-31 03:08 AM


All times are GMT -8. The time now is 10:25 AM.


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