Convert row to note of parent row?
Ethan J. A. Schoonover
e at ejas.net
Sun Jan 15 19:29:21 PST 2006
As an aside, the delete problem Curt describes can be worked around
by repeating through a list of rows in reverse order. It's faster to
use a single filter (like the "every row" sample) but reverse
repeating through a list of rows will not alter the sequence of the
rows in the filtered list. I'm sure there is a better way than
this... anyone?
I suppose another option would be a recursive delete function that
strips out the last row. That's how I handle deletions (more or less)
in kgtd. Also probably not the best solution.
es
Ethan J. A. Schoonover
----------------------------------
e at ejas.net
Photos: http://ejas.net
Tech: http://kinkless.com
Skype: ethanschoonover
Mobile: +852 9871-0100
GMT+8
On 16 Jan 2006, at 11:17 AM, Curt Clifton wrote:
> Deletion are hard to script right, especially when you're trying to
> delete the rows in a selection. The trouble seems to be that the
> rows are recorded by position in the outline, and once you start
> deleting rows the position information is no longer correct.
>
> I'm afraid I don't have an easy answer or a snippet of code that
> would be very helpful. You might consider rewriting the script so
> that rather than making a note out of the selected rows it makes a
> note out of the children of the first selected row. WIth that
> interface, then you could use something like:
>
> delete (every row of theParent)
More information about the OmniOutliner-Users
mailing list