Sorting a list of aliases
Sorting a list of aliases
- Subject: Sorting a list of aliases
- From: Jim Brandt <email@hidden>
- Date: Mon, 6 Dec 2010 07:58:46 -0600
Is there a way to ask Finder to return a list of contents of a folder such that the list is already sorted?
Currently I put in a command similar to:
tell application "Finder" set sourceFolder to (folder of the front window) as text set theList to contents of folder sourceFolder as alias end tell
and then sort theList using a variation of a BubbleSort. The problem is this method is hiddiously slow when there is more than a few files in the folder.
I didn't time it but the sort for a folder of 139 files took over two minutes. I need something faster!
TIA,
Jim Brandt
|
_______________________________________________
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