Re: order of files in Finder vs. file index number
Re: order of files in Finder vs. file index number
- Subject: Re: order of files in Finder vs. file index number
- From: "scriptcode" <email@hidden>
- Date: Thu, 27 Mar 2008 09:54:29 -0600 (MDT)
- Importance: Normal
> On Mar 26, 2008, at 4:21 PM, scriptcode wrote:
>> Is there a way to get AppleScript to manipulate files in a folder in
the
>> order they appear in the Finder rather than in the order of their index
number?
>
> When I used this ...
>
> set folderList to (folders of folderRef) as alias list
>
> I got an alphabetic ordering that did not match the Finder's ordering in
an open folder window.
> So I changed to ...
>
> set folderList to (sort (folders of folderRef) as alias list by name)
-- alpha-numeric order, matches Finder
>
> and now I'm happy.
>
>
That worked--thanks a lot! And thanks to Chris Nebel for explaining the
differences in item order of different formats.
Now I'm happy, too.
Weldon
_______________________________________________
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