Re: Anybody knows
Re: Anybody knows
- Subject: Re: Anybody knows
- From: Deivy Petrescu <email@hidden>
- Date: Fri, 27 Jul 2001 20:15:01 -0400
At 4:58 PM -0700 7/27/01, Jon Pugh wrote:
At 2:55 PM -0300 7/27/2001, Andre Martins wrote:
>I'm trying to count the number of itens in my desktop folder, but the
>number is wrong.
>The code that I'm using:
>
> tell application "Finder" to count items of "desktop folder"
> set x to result
> display dialog x
>
>He answers 14, but that's 61 files and folders and aliases....
The part I like is that there *are* 14 items in "desktop folder",
but they are characters. ;)
Jon
So all applications "Finder" count correctly 14 elements in "desktop folder".
if one wants to count all the items in the desktop folder object then
one has to use
tell application "Finder" to count the items of desktop
This counts objects in all desktop of mounted volumes.
Regards
Deivy Petrescu
http://www.dicas.com