• 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: Anybody knows
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Anybody knows (From: Andre Martins <email@hidden>)
 >Re: Anybody knows (From: Jon Pugh <email@hidden>)

  • Prev by Date: Re: Anybody knows
  • Next by Date: Newbie question here...
  • Previous by thread: Re: Anybody knows
  • Next by thread: Re: Anybody knows
  • Index(es):
    • Date
    • Thread