Script has slowed massively due to Snow Leopard
Here is the portion of the code that has slowed to a crawl. (theYearFolder and theJobNumber is defined earlier in the script)
tell application "Finder"
with timeout of 777 seconds
try
*duplicate (every folder in theYearFolder whose name begins with thejobnumber) to the desktop*
on error the error_message
display dialog the error_message buttons {"Cancel"} default button 1 with icon caution
end try
end timeout
end tell
I am aware that there are some new changes in SL that cause certain operations to be duplicated if they are called inside a Finder tell block. As far as I can tell, that is not what is happening. Is there a known speed issue with the new Cocoa Finder + AppleScript? Or is there something I can change in my script that would speed up this operation?
PS …theYearFolder contains several hundred items.
Ideas?
24" iMac - Core 2 Duo 2.16, Mac OS X (10.6), 2GB RAM • GeForce 7600 GT