OO3 & Applescript
mentorsw
omni at mentorsw.com
Tue Nov 30 09:08:40 PST 2004
Jem,
You don't need the id.
Here are some examples:
set theRows to selected rows
A list of selected rows
set fillValue to the value of cell 2 of selected row 1
Get the contents of the topic cell in the first selected row
Scripting works well. I wrote a script called "Fill Down":
____________
Script to Fill Down in OmniOutliner (tested on OOPro3b3)
Asks the user which columns to fill down, then copies the values from
those columns in the first selected row, to the other selected rows if
more than one row is selected. If only one row is selected, values are
filled to children of that row.
Column Names must be unique for this script to work.
Doesn't replace a value if one already exists. The exception is
checkboxes for which missing value means not checked.
____________
Two limitations influenced the design: There is currently a bug that if
you select a cell, "count of selected columns" always returns 0, so you
can't determine which cell is selected. Also, you can't select multiple
cells in the UI.
>I'm trying to get a reference to the currently selected row in OO3 Pro but
>for some reason I can't get the syntax correct:
>
>tell application "OmniOutliner Professional"
> tell document 1
> get id of the selected row
> end tell
>end tell
>
>This doesn't work, does anyone know how it should look like?
>
> jem
>PS
>And yes, OO3 is nice and OO3 Pro is even better
>DS
>--
>Jan Erik Moström www.mostrom.pp.se
>_______________________________________________
>OmniOutliner-Users mailing list
>OmniOutliner-Users at omnigroup.com
>http://www.omnigroup.com/mailman/listinfo/omnioutliner-users
____________________
David Amis
Mentor Software,Inc.
Atlanta, GA
(404) 228-4640
More information about the OmniOutliner-Users
mailing list