• 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: File name list order
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: File name list order


  • Subject: Re: File name list order
  • From: "Adam K. Wuellner" <email@hidden>
  • Date: Fri, 10 Dec 2004 14:24:24 -0600


On Dec 10, 2004, at 11:00 AM, Michael Conner wrote:

Will this always be the case, or should I sort the list to be on the safe
side? I was going to use a snippet I found to use a do shell script sort.

Good question. I would like to pose it more generally:

How does one find out what order the objects in a list returned by plural object names (or every [element]) are returned in?

I do not see it addressed in the application dictionary, the Language Guide or AS:TDG.

Defensively, I would probably not rely on the order returned unless there is some inherent ordinality to the objects requested. For example, it makes sense to ask for the first item of the words of "a string of words". But asking for the first file of a folder is less clear - first in what sense? Without explicit documentation explaining what the order of the returned list is, I would sort the list before proceeding. Hopefully, that documentation exists, and I just haven't found it yet.

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: File name list order
      • From: Christopher Nebel <email@hidden>
References: 
 >File name list order (From: Michael Conner <email@hidden>)

  • Prev by Date: Re: set the clipboard not available in some apps (like Word)
  • Next by Date: Re: OSX script problem
  • Previous by thread: File name list order
  • Next by thread: Re: File name list order
  • Index(es):
    • Date
    • Thread