Re: Applescript-users Digest, Vol 2, Issue 621
Re: Applescript-users Digest, Vol 2, Issue 621
- Subject: Re: Applescript-users Digest, Vol 2, Issue 621
- From: David Wolfe <email@hidden>
- Date: Thu, 22 Sep 2005 09:27:36 -0400
I have found that if I want to perform a script on a group of selected
files in alphabetical order, the only way I can get them to actually be
processed in the correct order is if the Finder window from which they
are selected is set to Column View. Even in List View with the sort by
Name, they are not processed in the correct order.
David Wolfe
productionSpecialist
settingPace, LLC
9. Re: File Order Processing Question (pete boardman)
Message: 9
Date: Wed, 21 Sep 2005 10:18:50 +0100
From: pete boardman <email@hidden>
Subject: Re: File Order Processing Question
To: Applescript Users <email@hidden>
Message-ID: <email@hidden>
Content-Type: text/plain; charset=WINDOWS-1252; delsp=yes;
format=flowed
On 20 Sep 2005, at 16:55, Oakley Masten wrote:
I dont understand how AppleScript processes files in a folder.
Me neither. :-)
I want it to process them in alphabetical order but it uses some
other criteria.
You can investigate sort orders in the Finder using a script like
this: (10.4.2 Tiger required, I think).
--
set f to (choose folder)
set r to {}
tell application "Finder"
set s1 to items of f -- default Finder order
set s2 to sort (items of f) as alias list by name -- sort command
repeat with i from 1 to count s1
set end of r to name of (item i of s1) & tab & (name of item
i of s2) & return
end repeat
end tell
r as Unicode text
--
With a file full of ordinary alphabetical names, I've seen little
difference between the columns. But files with numerical names,
leading spaces, or names with punctuation sort very differently. For
example:
1.txt 1.txt
10.txt 2.txt
11.txt 3.txt
2.txt 4.txt
3.txt 5.txt
30.txt 6.txt
4.txt 7.txt
5.txt 8.txt
6.txt 9.txt
7.txt 10.txt
8.txt 11.txt
9.txt 30.txt
Perhaps someone knows a reference for this.
hth
Pete
------------------------------
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden