• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Sorting Lists???
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Sorting Lists???


  • Subject: Re: Sorting Lists???
  • From: Richard Simms <email@hidden>
  • Date: Sat, 22 Mar 2003 23:16:29 -0500

At 10:21 pm +0000 22/3/03, John Delacour wrote:

set ls to "5,e,4,d,2,c,3,a,1,b,10,f,9,g,8,h,7,i,6,j"
do shell script "perl -e '$list = qq~" & ls & "~ ;
%hash = split q~,~, $list ;
@values = sort {$a cmp $b} values %hash;
for $key (sort {$a <=> $b} keys %hash) {
print qq~$key $values[$i]$/~ ;
++$i
}'"

Could I get this to work using MacPerl in OS 9? Is yes then how?

--
Richard Simms

Many that live deserve death. And some that die deserve life. Can you give it to them? Then do not be too eager to deal out death as judgement. For not even the very wise can see all ends.
J.R.R. Tolkien "The Lord of The Rings"
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.
References: 
 >Sorting Lists??? (From: Jakob Peterhänsel <email@hidden>)
 >Re: Sorting Lists??? (From: John Delacour <email@hidden>)
 >Re: Sorting Lists??? (From: John Delacour <email@hidden>)

  • Prev by Date: Re: Factorial [was Sine of the times...]
  • Next by Date: Entourage Script Question - Setting Read Status
  • Previous by thread: Re: Sorting Lists???
  • Next by thread: Re: Sorting Lists???
  • Index(es):
    • Date
    • Thread