2011-04-29 ::
Russ Leseberg //
automation + gaps + Technology
Sorting with AppleScript (AppleScrunix Style)
Sorting with AppleScript (AppleScrunix Style)
As there is no built-in sort function in AppleScript you have to create your own. A common way of sorting lists is to use the repeat function… cycling through the list comparing items as you progress. One of the more efficient approaches is a bubble sort. You can find an excellent example in Lesson 18, [...]