Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
General
GeneralPortable MacsHardwareNetworking
Applications
Mac ApplicationsEudoraFirefox / MozillaInternet ExplorerOutlook ExpressMS OfficeEntourageExcelPowerPointWordVirtual PCMedia PlayerOther MS Products
Programming
Mac ProgrammingCodeWarriorPerl
Country Specific
Australian Mac GroupUK Mac Group

Mac Forum / Applications / Mac Applications / February 2008



Tip: Looking for answers? Try searching our database.

List All Nested Folder Titles?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jeff in LA - 14 Feb 2008 21:15 GMT
(Running Tiger 10.4.11) is there an easy way to create a list of all
folder titles that are contained within a certain folder?

Thank you.
Gregory Weston - 14 Feb 2008 22:26 GMT
> (Running Tiger 10.4.11) is there an easy way to create a list of all
> folder titles that are contained within a certain folder?
>
> Thank you.

Open a terminal window.
Type 'find ', then drag the Finder icon for the folder you want to look
at into the terminal window, then type ' -type d -print > ~/folders.txt'
and hit return. You'll end up with a list of every folder contained
inside the folder you dragged. The list will be in a file named
folders.txt in your home directory.

If you only want to list the immediate children, put '-maxdepth 1 '
before the '-print' part.
Jeff in LA - 14 Feb 2008 22:35 GMT
> Open a terminal window.
> Type 'find ', then drag the Finder icon for the folder you want to look
[quoted text clipped - 5 lines]
> If you only want to list the immediate children, put '-maxdepth 1 '
> before the '-print' part.

Thanks!   I knew there had to be a way...    ;-)
AES - 15 Feb 2008 03:15 GMT
> > Open a terminal window.
> > Type 'find ', then drag the Finder icon for the folder you want to look
[quoted text clipped - 7 lines]
>
> Thanks!   I knew there had to be a way...    ;-)

BBEdit has an Edit->Insert->Folder Listing command that captures a
catalog of a folder's contents, and may have some options for the depth
to which it goes.

You can select, copy and paste into a text editor the list of the
contents of a folder displayed in List mode in a Finder window
Gregory Weston - 15 Feb 2008 12:12 GMT
> > > Open a terminal window.
> > > Type 'find ', then drag the Finder icon for the folder you want to look
[quoted text clipped - 14 lines]
> You can select, copy and paste into a text editor the list of the
> contents of a folder displayed in List mode in a Finder window

Works, and I believe it's in TextWrangler (free) as well. But there's no
way to restrict it to listing folders.
P. Sture - 22 Feb 2008 14:36 GMT
> > > Open a terminal window.
> > > Type 'find ', then drag the Finder icon for the folder you want to look
[quoted text clipped - 14 lines]
> You can select, copy and paste into a text editor the list of the
> contents of a folder displayed in List mode in a Finder window

TextWrangler also has this feature.

Signature

Paul Sture

Sue's OpenVMS bookmarks:
http://eisner.encompasserve.org/~sture/ovms-bookmarks.html

Davoud - 15 Feb 2008 05:52 GMT
Jeff in LA:
> > (Running Tiger 10.4.11) is there an easy way to create a list of all
> > folder titles that are contained within a certain folder?

Gregory Weston:
> Open a terminal window.
> Type 'find ', then drag the Finder icon for the folder you want to look
[quoted text clipped - 5 lines]
> If you only want to list the immediate children, put '-maxdepth 1 '
> before the '-print' part.

Sorry, but I'm going to put your answer down as a "No, there is not an
/easy/ way, but you can do this...

An example of an /easy/ /way/ would be "Right click on the folder name.
From the contextual menu, select "List all subfolders."

Or, get FolderLister (free) at
<http://www.coolosxapps.net/2007/05/24/folderlister-print-a-directory-li
sting/>. Works under 10.5.2.

Davoud

Signature

usenet *at* davidillig dawt com

Gregory Weston - 17 Feb 2008 02:50 GMT
> Jeff in LA:
> > > (Running Tiger 10.4.11) is there an easy way to create a list of all
[quoted text clipped - 13 lines]
> Sorry, but I'm going to put your answer down as a "No, there is not an
> /easy/ way, but you can do this...

Going to make a habit of assuming I meant something I never said?

While there are certainly easiER possibilities, I don't think you can
reasonably defend classifying "enter verbatim this short command" as
difficult. The OP didn't seem to consider it troublesome.

G
Jolly Roger - 14 Feb 2008 22:29 GMT
> (Running Tiger 10.4.11) is there an easy way to create a list of all
> folder titles that are contained within a certain folder?

You can run this command in a terminal window to get such a list:

    find /path/to/folder -type d

If you want to prevent it from listing sub-directory contents, then add
the '-maxdepth 1' switch, like so:

    find /path/to/folder -type d -maxdepth 1

TIP: You can drag any folder into a terminal window to copy the path
into the command line.

For example:

# find /Users/jollyroger -type d -maxdepth 1
/Users/jollyroger
/Users/jollyroger/.ssh
/Users/jollyroger/.Trash
/Users/jollyroger/.Xcode
/Users/jollyroger/Desktop
/Users/jollyroger/Documents
/Users/jollyroger/Downloads
/Users/jollyroger/Library
/Users/jollyroger/Movies
/Users/jollyroger/Music
/Users/jollyroger/Pictures
/Users/jollyroger/Public
/Users/jollyroger/Sites

Signature

Note: Please send all responses to the relevant news group. If you
must contact me through e-mail, let me know when you send email to
this address so that your email doesn't get eaten by my SPAM filter.

JR

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.