• 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: order of files in Finder vs. file index number
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >order of files in Finder vs. file index number (From: "scriptcode" <email@hidden>)
 >Re: order of files in Finder vs. file index number (From: Luther Fuller <email@hidden>)

  • Prev by Date: Re: reading a file in an applescript.
  • Next by Date: keep dialog open beyond time out
  • Previous by thread: Re: order of files in Finder vs. file index number
  • Next by thread: Re: order of files in Finder vs. file index number
  • Index(es):
    • Date
    • Thread