On May 24, 2010, at 10:01 AM, Robert Poland wrote: I was wondering if there are any guidelines for speeding up a script?
A couple of months ago, I reported [Subject: Slow Command in Snow Leopard] that
tell application "Finder" set itemsList to (files of prefsRef whose name starts with prefIdent) as alias list
which was inside a loop, was so slow as to be useless. (Following up on a suggestion from Mark Reed, I replaced this with a do shell script "ls ..." which was fast.)
There seem to be a number of Finder commands which are particularly slow (and seem to have become slow with the arrival of Snow Leopard). We need to: 1. Identify these commands; 2. Report them as bugs; and 3. Avoid them until they are fixed.
|