Re: How to get the number of items in a selected Folder ?
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: Shane Stanley <email@hidden>
- Date: Thu, 26 Nov 2015 09:31:34 +1100
On 26 Nov 2015, at 5:49 AM, Yvan KOENIG <email@hidden> wrote:
I would probably use :
use scripting additions use framework "Foundation" use script "BridgePlus" version "1.3"
load framework set myFolder to (choose folder) as alias count (current application's SMSForder's filesIn:myFolder recursive:true asPaths:false)
Nice :-)
Just be aware that that will return files (and packages) only, not folders. If you want them all:
use scripting additions use framework "Foundation" use script "BridgePlus" version "1.3.1"
load framework set myFolder to (choose folder) count (current application's SMSForder's itemsIn:myFolder recursive:true asPaths:false)
Also, as of 1.3.1, you can save a little typing:
use scripting additions use framework "Foundation" use script "BridgePlus" version "1.3.1"
set forder to load framework -- returns SMSForder class set myFolder to (choose folder) count (forder's itemsIn:myFolder recursive:true asPaths:false)
|
_______________________________________________
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