Re: Renaming files in Finder: why so slow?
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.