View Single Post
Hi everyone,

I’m new around here, and am just getting used to OO – it’s amazingly useful! I have a question, though: I have no experience with scripting, but am wondering if there is a script or an efficient way to reverse the hierarchical order of parents and children in an OO document – I’ve searched around but haven’t come across on e yet.

I’m not looking to re-order the list necessarily, but rather to reverse the hierarchy of all the parents and children. It's a single-column list with no comments or attachments etc.

I'm mindful that the implication of this is that there will be far more top-level parents than in the original list.

A simple example would be turning:
----------------------------------------
Vegetables
-Root vegetables
--Carrots
--Potatoes
-Leafy Vegetables
--Lettuce
--cabbage
----------------------------------------
Into this:

Carrots
-Root Vegetables
--Vegetables
Potatoes
-Root Vegetables
--Vegetables

Lettuce
-Leafy Vegetables
--Vegetables

Cabbage
-Leafy Vegetables
--Vegetables

----------------------------------------

Does a script exist for this? Is it possible? If one does'nt but you think it's possible, does anyone know of anyone out there who might be able to help write one?

Thanks for your help - and sorry for the long question!
Geoff