Slow Command in Snow Leopard
Slow Command in Snow Leopard
- Subject: Slow Command in Snow Leopard
- From: Luther Fuller <email@hidden>
- Date: Sun, 07 Mar 2010 15:03:53 -0600
Some years ago, I wrote an AppleScript application called "Annotate Preferences". It ran well in Tiger. It took minutes to run, but one didn't have to run it very often. When leopard came along, it continued to run within a reasonable time.
Then Snow Leopard arrived. "Annotate Preferences" now ran in hours instead of minutes and became almost useless. All attempts to rewrite the code proved useless. Today, I was able to identify all the fast code and was left with one offending command.
I have a repeat loop which repeats 100s of times. It contains the line ...
tell application "Finder" set itemsList to (files of prefsRef whose name starts with prefIdent) as alias list
(prefsRef is an alias to the Preferences folder and prefIdent is a string) In Snow Leopard this one line is so slow that, while the script is running, the Finder lack responsiveness. Scroll bars don't work, mouse clicks don't work, ...... then they work.
Anyone know what's going on in SL that would cause this?
|
_______________________________________________
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