Re: Slow Command in Snow Leopard
Re: Slow Command in Snow Leopard
>
> >Shane>FWIW, my (admittedly limited) testing suggests Finder scripting is even
> slower in 10.6 than before.
I get results faster using System Events with this script. (Although probably not as fast as shell)
System events returns file specifications (file "volume:folder:file") rather than alias list, but it's easy enough to convert those to aliases.
HTH,
ES
-------------
set prefsRef to path to preferences folder
set startStrings to {"Adobe Save For Web 9.0 Prefs", "Adobe", "A", "xxx"}
set AppleScript's text item delimiters to {tab}
set PrefResults to {{"String", "ItemsFound", "Time"} as text}
repeat with prefIdent in startStrings
set startTime to current date
tell application "System Events"
set itemsList to (every file of prefsRef whose name starts with prefIdent)
end tell
set elapsedTime to (current date) - startTime
set theseResults to {prefIdent as text, the (count of itemsList) as text, elapsedTime as text} as text
set the end of PrefResults to theseResults
end repeat
set AppleScript's text item delimiters to {return}
display dialog PrefResults as text
PrefResults as text
-- String ItemsFound Time
-- Adobe Save For Web 9.0 Prefs 1 1
-- Adobe 4 0
-- A 8 1
-- xxx 0 0 _______________________________________________
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