• 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
Open Dialog Sort Order
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Open Dialog Sort Order


  • Subject: Open Dialog Sort Order
  • From: Pat Stanford <email@hidden>
  • Date: Mon, 15 Dec 2003 12:58:13 -0800

I tried the archive, but it seems to be down this morning.

When I use a script to get a list of files in a folder it comes in in normal expected ASCII order. When I look at the same folder in the open file dialog, it is sorted differently. Why? How can I get a list in my script that will match the Finder display on screen?

tell application "Finder"
activate
set theFolder to choose folder
set theFiles to the name of every file in theFolder
end tell

File list from script
150F77.dwg
150M75.dwg
200F45.DWG
200f45a.dwg
200F85.DWG
200M07.DWG
200M09.DWG
22C05.DWG
22C05NEW.DWG
22C05OLD.DWG
2B4P23.DWG
2B4P24.dwg
2BC01R.DWG

File list from Finder
2B4P23.DWG
2B4P24.dwg
2BC01R.DWG
22C05.DWG
22C05NEW.DWG
22C05OLD.DWG
150F77.dwg
150M75.dwg
200F45.DWG
200f45a.dwg
200F85.DWG
200M07.DWG
200M09.DWG

Thanks,
Pat

Pat Stanford
Coviana
email@hidden
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Open Dialog Sort Order (missing lines)
      • From: Mr Tea <email@hidden>
    • Re: Open Dialog Sort Order
      • From: Mr Tea <email@hidden>
  • Prev by Date: Corrupt Script
  • Next by Date: Re: Getting Mail's messages into Entourage X
  • Previous by thread: Re: Corrupt Script
  • Next by thread: Re: Open Dialog Sort Order
  • Index(es):
    • Date
    • Thread