Re: Anybody knows
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