In OS 9 I can get the directory of a folder and only return folders or files that
are in the target folder. In OSX I haven’t found a direct way to do this.
I can list the directory of the folder but always get a result that has both files and folders.
Can this be done with out repeating thru the list to select only folders?
Maybe these will work:
set main_folder to "path:to:Some Folder:"
tell application "Finder" to ¬
set folders_ to folders of folder main_folder
-- OR
tell application "Finder" to ¬
set files_ to files of folder main_folder
– Rob
Your code works.
It was too simple.
Thanks