• 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: Sort don't return what I wait
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: Sort don't return what I wait
      • From: "Mark J. Reed" <email@hidden>
References: 
 >Sort don't return what I wait (From: KOENIG Yvan <email@hidden>)

  • Prev by Date: Sort don't return what I wait
  • Next by Date: Re: Sort don't return what I wait
  • Previous by thread: Sort don't return what I wait
  • Next by thread: Re: Sort don't return what I wait
  • Index(es):
    • Date
    • Thread