How can I count files (without subdirectories) of a certain folder in AppleScript?
How can I count subdirectories (without files) of a certain folder in AppleScript?
How can I count both files and subdirectories of a certain folder in AppleScript?
For example:
count files of folder "Desktop" of home
count folders of folder "Desktop" of home
set variable to (count files of folder "Desktop" of home) + (count folders of folder "Desktop" of home)