• 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: Luther Fuller <email@hidden>
  • Date: Wed, 26 Mar 2008 17:54:15 -0500

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.

_______________________________________________
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
  • Follow-Ups:
    • Re: order of files in Finder vs. file index number
      • From: "scriptcode" <email@hidden>
References: 
 >order of files in Finder vs. file index number (From: "scriptcode" <email@hidden>)

  • Prev by Date: order of files in Finder vs. file index number
  • Next by Date: Re: order of files in Finder vs. file index number
  • Previous by thread: 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