• 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: Phil Calvert <email@hidden>
  • Date: Fri, 27 Jul 2001 18:34:03 -0700

Hi,

Try this...

tell application "Finder" to count items of desktop
set x to result
display dialog x

I maybe wrong but I don9t think that the desktop is really a folder--at any
rate this bit of code counts all the items on my desktop--though I would
like to know why you bit of code gets a count of 14 on my mac too.

>By the way, Anyone knows where there's a great dictionary of applescript?

I like "Applescript in a Nutshell" published by O'Reilly.


> Hi
> 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....
> Is there anything wrong with my code or the word "items" don't refer to
> files, folders, aliases... ?
> By the way, Anyone knows where there's a great dictionary of applescript?
>
> Thanks
>
> Andre Martins


  • Prev by Date: Newbie question here...
  • Next by Date: Re: Refrencing an app by process id?
  • Previous by thread: Re: Anybody knows
  • Next by thread: Re: Anybody knows
  • Index(es):
    • Date
    • Thread