Re: Finder can't count?
Re: Finder can't count?
- Subject: Re: Finder can't count?
- From: KOENIG Yvan <email@hidden>
- Date: Wed, 16 Feb 2011 21:04:27 +0100
Maybe this quick and dirty script may help :
tell application "Finder" set finderAlias to (target of first Finder window) as text set nb_items to (count items of folder finderAlias) set the_folders to name of every folder of folder finderAlias set other_items to 0 repeat with f in the_folders try get visible of window of folder f of folder finderAlias (* fails if the folder isn't open *) set other_items to other_items + (count items of folder (finderAlias & f)) end try end repeat end tell log nb_items & return & other_items
Yvan KOENIG (VALLAURIS, France) mercredi 16 février 2011 21:03:19
|
_______________________________________________
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