Monday, December 11, 2017

#1 2002-02-01 11:09:26 am

Trash Man
Sanitation Department
Registered: 2005-10-20
Posts: 5336

List folder order

Has anyone ever had a problem with the order of the list folder command? I'm getting a list of files from a folder and there seems to be no rhyme nor reason to the order of the list that comes back. Is there a way to force an order (alpha, date mod)?


One mans trash is another mans treasure

Offline

 

#2 2002-02-01 11:26:17 am

Trash Man
Sanitation Department
Registered: 2005-10-20
Posts: 5336

Re: List folder order

: Has anyone ever had a problem with the order of the list folder command? I'm
: getting a list of files from a folder and there seems to be no rhyme nor
: reason to the order of the list that comes back. Is there a way to force
: an order (alpha, date mod)?

Not in the "list folder" command.  You could use the Finder "sort" command:

Applescript:

tell application "Finder"
set theItems to (sort items of (choose folder) by name)
end tell

Marc K. Myers
Marc@AppleScriptsToGo.com
AppleScriptsToGo
4020 W.220th St.
Fairview Park, OH  44126
(440) 331-1074

[2/1/02  1:26:00 PM]


One mans trash is another mans treasure


Filed under: Finder

Offline

 

Board footer

Powered by FluxBB

RSS (new topics) RSS (active topics)