• 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
Re: Batch file naming - serialize in reverse
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Re: Batch file naming - serialize in reverse (From: "Mark J. Reed" <email@hidden>)

  • Prev by Date: Re: Perhaps OT: how to make a custom CD that opens upon insertion to a window with custom background and icons
  • Next by Date: Sound Studio 2.2.4
  • Previous by thread: Re: Batch file naming - serialize in reverse
  • Next by thread: Perhaps OT:
  • Index(es):
    • Date
    • Thread