Re: Porting FolderCount routine to OSX
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.