• 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 Renaming Slower in 10.5.2 (Build 9C31)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Batch Renaming Slower in 10.5.2 (Build 9C31)


  • Subject: Re: Batch Renaming Slower in 10.5.2 (Build 9C31)
  • From: David Emmons <email@hidden>
  • Date: Mon, 17 Mar 2008 20:25:54 -0400

174 seconds to create them
241 seconds to rename

OS said 10.5.3 but it's 10.5.2 

Machine is a titanium 500 w/ 768 megs of ram and 5.2 gigs left on the 20gb drive. I'll try it on my iMac Core 2 Duo 2Ghz later.....

-Dave


On Mar 17, 2008, at 1:24 AM, email@hidden wrote:

tell application "Finder"
activate
display alert "This script calculates how long it takes to make 500 folders and then rename them on your current operating system"
set finderVersion to (the version)
try
make new folder at desktop with properties {name:"TestFolder4Rename"}
end try

set n to 1
set time_stamp_one to (current date)

-- Make 500 folders with the same name and a number increment
repeat 500 times
set rename_plus_num to ("DummyFolder" & n) as string
make new folder at folder "TestFolder4Rename" with properties {name:rename_plus_num}
set n to n + 1
end repeat

-- Calculate how much time it took in seconds
set time_stamp_two to (current date)
set time_difference to (time_stamp_two - time_stamp_one)
set time_dif_string to time_difference as string
activate
display alert "---------- OS " & finderVersion & " ----------" & return & return & "Creating 500 folders took approximately " & time_dif_string & " seconds to complete. Now let's see how long it takes to simply change their names…"
set time_stamp_one to (current date)

-- Rename 500 folders with a number increment
set folder_items to displayed name of every item in folder "TestFolder4Rename"
set n to n + 1
repeat with curFile in folder_items
set rename_plus_num to ("Changed Name" & n) as string
set the name of item curFile in folder "TestFolder4Rename" to rename_plus_num
set n to n + 1
end repeat

-- Calculate how much time it took in seconds
set time_stamp_two to (current date)
set time_difference to (time_stamp_two - time_stamp_one)
set time_dif_string to time_difference as string
activate
display alert "---------- OS " & finderVersion & " ----------" & return & return & "Renaming 500 folders took approximately " & time_dif_string & " seconds to complete."
end tell

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: Batch Renaming Slower in 10.5.2 (Build 9C31)
      • From: David Emmons <email@hidden>
References: 
 >Batch Renaming Slower in 10.5.2 (Build 9C31) (From: email@hidden)

  • Prev by Date: Re: InDesign CS2, XML, and graphics
  • Next by Date: Re: 10.4.9 versus 10.4.10
  • Previous by thread: Re: Batch Renaming Slower in 10.5.2 (Build 9C31)
  • Next by thread: Re: Batch Renaming Slower in 10.5.2 (Build 9C31)
  • Index(es):
    • Date
    • Thread