Re: Batch file naming - serialize in reverse
Re: Batch file naming - serialize in reverse
- Subject: Re: Batch file naming - serialize in reverse
- From: Martin Orpen <email@hidden>
- Date: Thu, 22 Sep 2005 00:02:42 +0100
on 21/9/05 19:25, Mark J. Reed at email@hidden wrote:
>> 1.pdf > 13.pdf
>> 2.pdf > 11.pdf
>> 3.pdf > 09.pdf
>> 4.pdf > 07.pdf
>> 5.pdf > 05.pdf
>> 6.pdf > 03.pdf
>> 7.pdf > 01.pdf
Why not simply *reverse* the list of files:
set myFolder to choose folder
tell application "Finder"
set myList to files of myFolder
set myList to reverse of myList
set n to 1
repeat with f from 1 to (count of myList)
set theName to n & ".pdf" as string
set name of item f of myList to theName
set n to n + 2
end repeat
end tell
Regards
--
Martin Orpen
_______________________________________________
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