tell application "Finder"
set c to the selection as alias list
set h to count (items in c whose class is folder)
end tell
how should i formulate this script, to get the variable h?
c= 1 document file, 2 folders (in selection)
h= must return 2 (folders)