Re: Sorting
Re: Sorting
- Subject: Re: Sorting
- From: Allen Watson <email@hidden>
- Date: Wed, 21 Nov 2001 13:31:14 -0800
On Tue, 20 Nov 2001 08:46:25 -0600 AppleScripter
<email@hidden> wrote:
>
You can do:
>
>
set fileList to every item of aFolder
>
>
which will give you a list. You can then sort the list
That gives a list of Finder items like 'folder "Documents" of disk
"HardDisk"'. I'm not sure a sort will work on those. You might need to do:
set fileList to name of every item of aFolder
Then, you can sort the names. But I believe that every item of a folder will
return the folder sorted by name anyhow...by default. OS X Finder has a
built-in Sort command, but in the dictionary it says it isn't available yet.