The Omni Group
These forums are now read-only. Please visit our new forums to participate in discussion. A new account will be required to post in the new forums. For more info on the switch, see this post. Thank you!

Go Back   The Omni Group Forums > OmniOutliner > OmniOutliner 3 for Mac
FAQ Members List Calendar Today's Posts

 
Column Popup Sorter Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
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
 
 




Similar Threads
Thread Thread Starter Forum Replies Last Post
Paste from Word Column to OO Column jhlindstrom OmniOutliner 3 for Mac 1 2011-02-10 03:05 PM
Popup menu column, set value for lots of rows at once? amorya OmniOutliner 3 for Mac 2 2009-10-13 11:49 AM
Problem with popup column davidinva OmniOutliner 3 for Mac 2 2009-09-24 06:25 AM
Popup on top runard OmniWeb General 4 2007-07-04 05:43 AM


All times are GMT -8. The time now is 03:27 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.