I can’t seem to figure this out, but how would you count the number of items in a folder? For example, under Music/iTunes/iTunes Music/Downloads/Podcasts. I’m guessing it would be something like
tell app "Finder"
count the number of items in folder x
end tell
Am I close?