Hi,
i know the shell script “ls” which is quite the same as list folder. I want instead to filter the directories inside a folder- the Finder uses ‘whose’ but it its really slow for a large amount of items.
some other hints ?
Hi,
i know the shell script “ls” which is quite the same as list folder. I want instead to filter the directories inside a folder- the Finder uses ‘whose’ but it its really slow for a large amount of items.
some other hints ?
Hi,
try the shell command find
set foundFolders to paragraphs of (do shell script "find " & quoted form of POSIX path of (path to home folder) & " -type d")
or if you want to search without considering subfolders
set foundFolders to paragraphs of (do shell script "find " & quoted form of POSIX path of (path to home folder) & " -mindepth 1 -maxdepth 1 -type d")
thanks Stefan.