Re: Anybody knows
Re: Anybody knows
- Subject: Re: Anybody knows
- From: Jack Morrison <email@hidden>
- Date: Fri, 27 Jul 2001 12:08:37 -0600
Andre martin wrote:
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?
The desktop folder is actually a hidden folder within the root folder
of your startup disk.
Your code should probably read
tell application "Finder" to count items of folder
"Nameofstartupdrive:desktop folder"
set x to result
display dialog x
Jack
--
--------------------------------------------------------------------------
Jack Morrison <email@hidden> Multipurpose Intelligent
http://www.mBase.com Publishing Solutions
P:780-945-4602
F:780-421-8256 mBase...Enjoy the Freedom
--------------------------------------------------------------------------