• 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: Renaming files in Finder: why so slow?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Renaming files in Finder: why so slow?


  • Subject: Re: Renaming files in Finder: why so slow?
  • From: "Marc K. Myers" <email@hidden>
  • Date: Thu, 4 Sep 2003 13:08:05 -0400

I don't know what the difference is, but this script renamed 220 files in 13.2 seconds. It was run on a 446 MHz G4 machine under OS 10.2.6. Without the "as alias list" it ran in 24.8 seconds.

set theFldr to choose folder
tell application "Finder"
set theFiles to (files of theFldr) as alias list
set fileCnt to 1
repeat with aFile in theFiles
set name of aFile to "testFile" & text -3 thru -1 of ("00" & (fileCnt as text))
set fileCnt to fileCnt + 1
end repeat
end tell

Marc [09/04/03 1:07:49 PM]
_______________________________________________
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: Renaming files in Finder: why so slow?
      • From: Emmanuel <email@hidden>
  • Prev by Date: Re: Searching for a folder in Applescript.
  • Next by Date: Novell Volume Problems, Please Help.
  • Previous by thread: Re: Renaming files in Finder: why so slow?
  • Next by thread: Re: Renaming files in Finder: why so slow?
  • Index(es):
    • Date
    • Thread