Re: File name list order
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