Re: Shell script to get a list of all subfolders inside a folder
Re: Shell script to get a list of all subfolders inside a folder
- Subject: Re: Shell script to get a list of all subfolders inside a folder
- From: "Stockly, Ed" <email@hidden>
- Date: Tue, 13 Oct 2015 18:11:28 +0000
- Thread-topic: Shell script to get a list of all subfolders inside a folder
Just for grins, I tried this on my mac.
set myDirectory to alias "Macintosh HD: Items from Desktop:"
tell application "Finder"
set myFolders to every folder of entire contents of myDirectory as alias
list
end tell
It found 2040 nested folders in that directory in 1.5 minutes.
The entire contents command has been a hot mess forever, bit it worked
reliably, it would do the trick.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden