Re: Slow Command in Snow Leopard
Re: Slow Command in Snow Leopard
- Subject: Re: Slow Command in Snow Leopard
- From: Shane Stanley <email@hidden>
- Date: Mon, 08 Mar 2010 10:00:22 +1100
- Thread-topic: Slow Command in Snow Leopard
On 8/3/10 9:47 AM, "Mark J. Reed" <email@hidden> wrote:
> Might I suggest something like this?
>
> set filenames to paragraphs of (do shell script "ls -1d " & (quoted
> form of posix path of prefsRef) & "/" & prefIdent & "*")
>
> Which takes on the order of a twentieth of a second OMM (with
> admittedly only about 400 files in the directory in question)...
Indeed. Even with a bit extra time to rebuild full paths if required, it's
going to be massively faster.
FWIW, my (admittedly limited) testing suggests Finder scripting is even
slower in 10.6 than before.
--
Shane Stanley <email@hidden>
AppleScript Pro, April 2010, Florida <http://www.applescriptpro.com>
_______________________________________________
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