Re: Slow Command in Snow Leopard
Re: Slow Command in Snow Leopard
- Subject: Re: Slow Command in Snow Leopard
- From: LuKreme <email@hidden>
- Date: Mon, 8 Mar 2010 00:37:53 -0700
On 7-Mar-2010, at 14:03, Luther Fuller wrote:
>
> tell application "Finder"
> set itemsList to (files of prefsRef whose name starts with prefIdent) as alias list
Well, first off, don't use the Finder for that, use System Events.
Second of all, it would be better to get all the files first, then iterate over the list than getting a file each time.
> Anyone know what's going on in SL that would cause this?
Basically, scripting the Finder directly for almost all tasks was deprecated back in, iirc, 10.3
--
'I'll see you all tomorrow. If there is one.' --Men at Arms
_______________________________________________
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