• 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: (no subject) [Finder count]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: (no subject) [Finder count]


  • Subject: Re: (no subject) [Finder count]
  • From: Cornwall <email@hidden>
  • Date: Tue, 3 Sep 2002 18:36:33 -0700

At 5:31 PM -0500 9/3/02, Patrick R. Reardon, M.D. wrote:
> I am in the process of transferring some of my scripts from
>OS 9 to OS X. I can't get past asking the finder to count the number
>of files in a folder (using the folder name as a string) with the
>count command.

The syntax can throw you. Perhaps some examples will help.

set ileus to choose folder
tell application "Finder"
count each file of folder ileus
end tell
-->odd. but I need to put "folder" before the alias reference(?)

set peep to (choose folder) as string
tell application "Finder"
count each file of folder peep
end tell

tell application "Finder"
set faacp to every folder of desktop whose name starts with "Pu"
count of faacp
end tell

HTH
Corny
_______________________________________________
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.

References: 
 >(no subject) (From: "Patrick R. Reardon, M.D." <email@hidden>)

  • Prev by Date: Re: Help! Need to get text from OS X Mail to Tex-Edit...
  • Next by Date: Off Topic: QT 6 --> QT 5 in Jag
  • Previous by thread: (no subject)
  • Next by thread: Re: (no subject)
  • Index(es):
    • Date
    • Thread