• 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: How to get the number of items in a selected Folder ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to get the number of items in a selected Folder ?


  • Subject: Re: How to get the number of items in a selected Folder ?
  • From: "Stockly, Ed" <email@hidden>
  • Date: Wed, 25 Nov 2015 18:19:44 +0000
  • Thread-topic: How to get the number of items in a selected Folder ?

When you say the "whole contents" does that include nested items, in sub folders? List folders only looks at one level, so a folder inside with 100 items would count as 1.

The "entire contents" command will give you the nested items as well, but that has always choked and stalled on large folders.

Tell application "Finder"

  Set allMyStuff to count of entire contents of myFolder

End tell

 


From: <applescript-users-bounces+ed.stockly=email@hidden> on behalf of "emile.a.schwarz" <email@hidden>
Reply-To: "emile.a.schwarz" <email@hidden>
Date: Monday, November 23, 2015 at 12:50 AM
To: AppleScript Digest <email@hidden>
Subject: How to get the number of items in a selected Folder ?

I wanted to scan the whole contents of a selected folder (chose folder), but failed, yesterday.


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: How to get the number of items in a selected Folder ?
      • From: "Stockly, Ed" <email@hidden>
References: 
 >How to get the number of items in a selected Folder ? (From: "emile.a.schwarz" <email@hidden>)

  • Prev by Date: Re: How to get the number of items in a selected Folder ?
  • Next by Date: Re: How to get the number of items in a selected Folder ?
  • Previous by thread: Re: How to get the number of items in a selected Folder ?
  • Next by thread: Re: How to get the number of items in a selected Folder ?
  • Index(es):
    • Date
    • Thread