Re: Occasional missing value from Finder command
Re: Occasional missing value from Finder command
- Subject: Re: Occasional missing value from Finder command
- From: Mr Tea <email@hidden>
- Date: Thu, 03 Apr 2003 00:30:52 +0100
This from Jeffrey Mattox - dated 02-04-03 03706 am:
>
But the default timeout is 120 seconds. I get the error within one
>
or two seconds. I've tried an explicit "with timeout of 120
>
seconds", with no effect.
>
>
At 5:02 PM -0800 4/1/03, Graham Carter wrote:
>
> I would think this is because it takes a certain amount of time to
>
> calculate the size. If you try this on small directories you should
>
> get the right answer every time. If you tell your script to wait
>
> for a second or two (or more if you are calculating a very large
>
> directory) it should work every time.
Hi, Jeffrey.
The timeout thing defines how long a script waits for something to happen.
If, for instance, you want a script find to items in or get info about the
'entire contents' of a large disk, this might not have returned any result
before the default timeout kicks in, so you would specify a longer than
usual timeout (maybe one of those little eights on it's side).
I think Graham was suggesting that you should put a 'delay' in so that the
script can get a breather, but I also think that this won't make the
slightest difference to the results you were seeing. FWIW, I also managed to
generate 'missing values', apparently at random, in the circumstances
described.
Nick
pp Mr Tea
--
Brew of the day: Glengettie
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.