• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Finder not counting files right
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Finder not counting files right (From: Olivier Destrebecq <email@hidden>)

  • Prev by Date: Tried'n'trusted Applet crashing repeatedly in X.
  • Next by Date: Classic mode Desktop Printers on Mac OS X
  • Previous by thread: Finder not counting files right
  • Next by thread: RE: FInder not counting files right
  • Index(es):
    • Date
    • Thread