Re: Finder not counting files right
Re: Finder not counting files right
- Subject: Re: Finder not counting files right
- From: John W Baxter <email@hidden>
- Date: Thu, 25 Apr 2002 17:57:30 -0700
At 16:18 -0500 4/25/2002, Olivier Destrebecq wrote:
>
I'm creating an application that write files to a temporary directory.
>
I wanted to write a script that would monitor that folder and tell me if
>
there were any file in there that were not used by my app anymore but
>
that was not deleted. So i created a stay open script that every 4
>
seconds looks at the folder and compare the number of file to the number
>
of document in my app. the problem is that the finder return me an
>
invalid count. it seems to update its count only when the user actually
>
open the folder to see it.
The first thing to try would probably be to tell Finder to update the
folder before asking it to count the items inside.
I'm unfortunately guessing...and I don't know what the second thing is,
although getting a list of the items and then getting the length of the
list comes to mind
--John
--
John Baxter email@hidden Port Ludlow, WA, USA
_______________________________________________
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.