Another Handy Dandy Applescript
Michael Terry
formido at mac.com
Fri Feb 21 22:17:01 PST 2003
On 2/21/03 9:14 PM, "James Spahr" <jsp at designframe.com> wrote:
> Here is something I wrote on a train ride today.
Wish I had a laptop!
> Writing it revealed
> some bugs, and a re-hashing of a scripting feature request.
>
> bugs? :
>
> On the new beta, I can not re-arrange rows, I wind up getting a :
>
> *** -[OOTextStorage descriptionWithCalendarFormat:]: selector not
> recognized
>
> When I change the date columns to rich text, i get a:
>
> *** -[NSCFDate rtfStringWithEncoding:]: selector not recognized
Are you getting these errors when you try to script stuff, or just in
regular use. I get similar errors when I experiment with text styles and
importing text from without OO using scripts. Depending on whether you set a
value by value, text, or topic, OO sometimes doesn't seem to recognize the
format of the external text--maybe its a text encoding or styled text issue.
> And the feature request : Unique id numbers for rows, so even if they
> are moved, a script can still find them. Please?
Yep, another guy and I just requested this on-list in the last couple
months. Good to see another vote.
You know what else would be really cool? Event handlers like only a very few
other scriptable apps have, for instance AIM. I envision being able to
attach scripts to events like:
on clicked theRow
on opened theDocument
on clicked in theCell
on selected theColumn
on launched
The terms would have to be cleaned up, but with some stuff like this, plus
ids for rows, and a hierarchical script menu, one could release whole
mini-applications composed of related scripts. These applications could fill
niches for people. OO is flexible because it's so general, but with a little
extra apparatus, appealingly specific applications could be molded from it.
A precedent is something like VBA and Excel.
> ----
>
> Anyway here is my script. It works on an OO document with a couple
> columns, and it allows you to keep and active timer on your to do items
> / tasks -- makes filling out timesheets easy :)
>
<useful script snipped>
For now, though, as you prove, idle handlers can make a little event loop
themselves.
Mike
More information about the OmniOutliner-Users
mailing list