Re: Why Slow Then Fast
Re: Why Slow Then Fast
On Sep 7, 2010, at 5:03pm, Shane Stanley wrote:
>
> In most cases you're right, but if the Finder is busy enough there's a
> chance that it will actually time out. This isn't theory; I've had to rework
> scripts to get around the problem.
>
> Moreover, the sample uses a call to a scripting addition inside the tell
> block. Again, the difference in a single call might be imperceptible, but
> the release notes are pretty clear that that's an inefficient thing to do.
>
> I don't see it as a bad thing to point those things out.
>
> --
They are good to point out, and good to know, I was just focusing on this particular puzzle, I think something else is the problem.
>> Could the culprit be 'entire contents'?
>
> Probably only in so far as it requires getting a lot of information from the
> file system, which is being cached in case it's required again in the near
> future.
>
As soon as I saw "entire contents" I thought that might be it, but I ran some tests running an entire contents filter on a largish folder and it was consistently just as fast, er slow, the second time as it was the first.
I wonder how many items are in the folder?
ES _______________________________________________
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