• 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: Count problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Count problem


  • Subject: Re: Count problem
  • From: "Marc K. Myers" <email@hidden>
  • Date: Tue, 16 Jul 2002 12:58:17 -0400
  • Organization: [very little]

> Date: Mon, 15 Jul 2002 22:25:41 -0700
> Subject: Count problem
> From: Duane Bemister <email@hidden>
> To: email@hidden
>
> I am trying to get the result of the count of the number of files in a
> folder
>
> set the source_folder to alias "WisdomQuesteLibrary:AllwestScans:"
> set the file_count to the count of the source_folder each file
> if file_count is 1 then
> beep
> else
> something else
>
> I get a Finder expected a reference error
>
> "count of the source_folder each file"

Try:

set the file_count to (count files of source_folder)

Marc K. Myers <email@hidden>
http://AppleScriptsToGo.com
4020 W.220th St.
Fairview Park, OH 44126
(440) 331-1074

[7/16/02 12:58:09 PM]
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: Postscript from Quark
  • Next by Date: Re: error -1762
  • Previous by thread: Count problem
  • Next by thread: RE: Propeller heads and timing calls
  • Index(es):
    • Date
    • Thread