View Single Post
If you want to automatically close several windows opened in OmniPlan, you might be tempted to write a single line of Applescript like this:

tell application "OmniPlan" to close windows
This does indeed work well if you run it from the OmniPlan script menu, or from a script editor.
If, however, you install a button for it on the OP toolbar, this innocuous script becomes a danger - it is likely to crash OP completely, particularly if you change focus to another app just after running, it seems.

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. Aaron has just written to say: I'll file this in our bug database for consideration.

Analogous scripts also crash OmniFocus 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 OP toolbar, find crashing (and misbehaving scripts) disconcerting, and would like to see this issue fixed, do use Help > Send Feedback in the OP menu, and let the OP development team know ...


Last edited by RobTrew; 2010-06-18 at 12:43 AM..