Re: Sort don't return what I wait
Re: Sort don't return what I wait
- Subject: Re: Sort don't return what I wait
- From: KOENIG Yvan <email@hidden>
- Date: Mon, 16 Jun 2008 19:05:50 +0200
Le 16 juin 2008 à 18:57, KOENIG Yvan a écrit :
Hello
I wish to sort a list of filenames.
As it may long, I thought that a shell script would be a good tool.
Alas, it doesn't sort the way I want.
May you find where is the wrongdoer (yes, it's me)
--[SCRIPT]
property lineFeed : ASCII character 10
property maListe : {}
set my maListe to {"bug_or_flaw.pages", "anomalies_Numbers.pages",
"apostrophes.pages", "AppleWorks & AppleScripts.pages"}
set tt to my recolle(my maListe, lineFeed)
set tt to (do shell script "echo " & quoted form of tt & " | sort")
…
Bingo,
I just forgot an option
set tt to (do shell script "echo " & quoted form of tt & " | sort -f")
Yvan KOENIG (from FRANCE lundi 16 juin 2008 19:05:32)
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden