I am trying to get the count of the number of items (folders) in a folder that have names longer than a certain number of characters (2 in this case) and set that count to a variable.
This is what I currently have:
tell application "Finder" to set f to the count of every folder of the entire contents of folder ReturnsFolderPath where the ((count of characters of name of every folder of the entire contents of folder ReturnsFolderPath) is greater than 2)
which returns an error of: “Can’t get 2 whose 0 > 2.”
Thanks!