• 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
rename many files ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

rename many files ?


  • Subject: rename many files ?
  • From: Christian Vinaa <email@hidden>
  • Date: Mon, 17 Feb 2003 14:52:36 +0100

set myPart to "2"
renameFile file "a" of folder "y" to myPart & " a"
renameFile file "b" of folder "y" to myPart & " b"
renameFile file "c" of folder "y" to myPart & " c"
renameFile file "d" of folder "y" to myPart & " d"
renameFile file "e" of folder "y" to myPart & " e"


(uses Jon's Commands)

but

when I run the script only the FIRST gets done and gets done OK

the script errors with a BAD FILE name explanation
at the second file to be changed

what gives ?
--
Christian Vinaa

email@hidden

...... Meanwhile, aunt Martha, having taken a tramp in the woods,
is lying in a ditch at the edge of town .........................
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: rename many files ?
      • From: Jon Pugh <email@hidden>
References: 
 >Re: How to get Zero (0) before Month ? (From: Paul Berkowitz <email@hidden>)

  • Prev by Date: Execute textfile as applescript?
  • Next by Date: Page breaks in Excel
  • Previous by thread: Re: How to get Zero (0) before Month ?
  • Next by thread: Re: rename many files ?
  • Index(es):
    • Date
    • Thread