MACSCRPT Archives

November 2006

MACSCRPT@LISTSERV.DARTMOUTH.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Emmanuel <[log in to unmask]>
Reply To:
Macintosh Scripting Systems <[log in to unmask]>
Date:
Wed, 22 Nov 2006 19:10:38 +0100
Content-Type:
text/plain
Parts/Attachments:
text/plain (27 lines)
At 12:51 PM -0500 11/22/06, Bob R. wrote:
>Is there a scripting addition freeware that will sort strings of 
>text in alphabetical order, for
>OSX?

You may want to subscribe to sul:
<http://www.satimage-software.com/en/sul.html>
and be informed of the latest releases of our products.

The latest (non-public) version of Satimage.osax (free) includes the 
following command:

sortlist v : sort a list of numbers (or array of real) or a list of 
strings (case sensitive). Can also sort a list of lists: lists are 
sorted asynchronously or synchronously if the 'with respect to' 
parameter is specified. syn sortarray
sortlist list of anything : the list to sort (or a list of lists)
[with respect to integer] : rank of the list used as the sort 
criterion. Relevant only if the direct parameter is a list of lists: 
requests a synchronous sort. If this parameter is not specified, each 
list is sorted separately.
[ascending boolean] : default true
[remove duplicates boolean] : if true, remove duplicate values. Default false
? list of anything : the sorted list (or lists)

Emmanuel

ATOM RSS1 RSS2