View Single Post
A while ago I asked if anyone had a script that would sort the popup list of a column. I think it went unanswered. I finally had a chance to pull one together myself. Let me know if there is anything I can do for speed or structure...

tell application "OmniOutliner Professional"
tell front document
set enumcount to count of enumerations of column "Assigned"
display dialog enumcount
set x to 1
repeat until x = enumcount
set y to x + 1
set firstName to the name of enumeration x of column "Assigned"
set secondName to the name of enumeration y of column "Assigned"
if firstName > secondName then
--- swap
set name of enumeration y of column "Assigned" to firstName
set name of enumeration x of column "Assigned" to secondName
set x to 1 -- start agan
else
set x to x + 1
end if
end repeat
end tell
end tell