AppleScript: Set Selected Rows

Michael Terry formido at mac.com
Thu Dec 30 13:38:50 PST 2004


Hi,

Is there a way to set the selected rows in Outliner 3 via AppleScript? This was possible in prior versions, and I rely on it in some scripts.

I don't understand why selected row didn't just remain a property, instead of now being a class in itself. The way it is now, to add a selected row to a document you'd have to do something like:

make selected row

... but you would need to specify an insertion location, which doesn't make very much sense, since a selected row maps onto a regular row. The 'selected row' class would have to add a property that allows the scripter to identify the new selected row with an already existing row in the document.

I think either 'selected rows' should be a property of the document, which is simple and easy and similar to other programs, or there should now also be a 'selection-object' class (c.f., Script Editor's dictionary) with which you can use the 'add' and 'remove' commands.

Michael



More information about the OmniOutliner-Users mailing list