• 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: Porting FolderCount routine to OSX
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Porting FolderCount routine to OSX


  • Subject: Re: Porting FolderCount routine to OSX
  • From: Shane Stanley <email@hidden>
  • Date: Fri, 5 Dec 2003 13:55:22 +1100

On Dec 5, 2003, at 12:52 PM, Jeff Handy wrote:

Also, I'm
using Script Debugger and the value of "count" is way off. There are
only three folders but a value of 28 is showing up.

How many characters are there in the path to the folder? My bet is 28. Try "count of items of".

I suspect what you're trying to do is something like:

tell application "Finder"
try
set the Folder_list to (every folder of the entire contents of folder QTtarget_fldr) as alias list
on error -- only one match, so...
set the Folder_list to (every folder of the entire contents of folder QTtarget_fldr) as list
end try
set the FolderCount to count of items of Folder_list
end tell

--
Shane Stanley <email@hidden>
_______________________________________________
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: 
 >Porting FolderCount routine to OSX (From: "Jeff Handy" <email@hidden>)

  • Prev by Date: Re: Another script to analyize, please
  • Next by Date: Re: Coerce time
  • Previous by thread: Porting FolderCount routine to OSX
  • Next by thread: Re: Porting FolderCount routine to OSX
  • Index(es):
    • Date
    • Thread