• 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: Jolly Roger <email@hidden>
  • Date: Fri, 27 Jul 2001 13:17:53 -0500

On 7/27/2001 1:08 PM, "Jack Morrison" <email@hidden> wrote:

> 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

Or you could just say:

tell application "Finder" to count items of folder (path to startup disk) &
"Desktop Folder"

Note: If you have more than one hard drive on your system, it is possible
that you have items on the desktop of another drive, and those items
wouldn't be included in this list.

JR


References: 
 >Re: Anybody knows (From: Jack Morrison <email@hidden>)

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