• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Shell script to get a list of all subfolders inside a folder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Shell script to get a list of all subfolders inside a folder (From: Bert Groeneveld <email@hidden>)
 >Re: Shell script to get a list of all subfolders inside a folder (From: Christopher Stone <email@hidden>)
 >Re: Shell script to get a list of all subfolders inside a folder (From: Bert Groeneveld <email@hidden>)
 >Re: Shell script to get a list of all subfolders inside a folder (From: Shane Stanley <email@hidden>)
 >Re: Shell script to get a list of all subfolders inside a folder (From: Christopher Stone <email@hidden>)
 >Re: Shell script to get a list of all subfolders inside a folder (From: Shane Stanley <email@hidden>)
 >Re: Shell script to get a list of all subfolders inside a folder (From: Christopher Stone <email@hidden>)
 >Re: Shell script to get a list of all subfolders inside a folder (From: Shane Stanley <email@hidden>)
 >Re: Shell script to get a list of all subfolders inside a folder (From: Christopher Stone <email@hidden>)
 >Re: Shell script to get a list of all subfolders inside a folder (From: Shane Stanley <email@hidden>)
 >Re: Shell script to get a list of all subfolders inside a folder (From: Shane Stanley <email@hidden>)

  • Prev by Date: Re: Shell script to get a list of all subfolders inside a folder
  • Next by Date: Re: Shell script to get a list of all subfolders inside a folder
  • Previous by thread: Re: Shell script to get a list of all subfolders inside a folder
  • Next by thread: Re: Shell script to get a list of all subfolders inside a folder
  • Index(es):
    • Date
    • Thread