• 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: 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
--------------------------------------------------------------------------


  • Follow-Ups:
    • Re: Anybody knows
      • From: Andre Martins <email@hidden>
    • Re: Anybody knows
      • From: Jolly Roger <email@hidden>
References: 
 >Anybody knows (From: Andre Martins <email@hidden>)

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