Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > Printing all folder names on a cd to a text file

Printing all folder names on a cd to a text file
Thread Tools
Dedicated MacNNer
Join Date: Mar 2002
Status: Offline
Reply With Quote
Sep 1, 2003, 01:48 PM
 
Hi,
I would like to list all the contents of all my cds.Each cd has multiple folders and I would like all these names in alphabetical order in a text file.Anyone know an application that does just this ? Thanks in advance.
http://winlab.csbnet.se Visit the Mac Demo Scene.
     
Senior User
Join Date: Oct 2000
Location: Midwest
Status: Offline
Reply With Quote
Sep 1, 2003, 08:19 PM
 
If you drag a folder to the Print Center icon, a list of files in that folder will be printed. I don't know if the container concept is consistent, but it is in applescript and other ways the file structure is referenced. What happens if you drag the CD image to the Print Center icon?

Worth a try.

Craig
     
Clinically Insane
Join Date: Oct 2001
Location: San Diego, CA, USA
Status: Offline
Reply With Quote
Sep 1, 2003, 09:21 PM
 
You could just use ls on the command line.
ls /Volumes/SomeCD > sometextfile.txt
Chuck
___
"Instead of either 'multi-talented' or 'multitalented' use 'bisexual'."
     
Professional Poster
Join Date: Oct 2001
Location: London
Status: Offline
Reply With Quote
Sep 2, 2003, 02:42 AM
 
Originally posted by Chuckit:
You could just use ls on the command line.
ls /Volumes/SomeCD > sometextfile.txt
ls -R /Volumes/SomeCD > someTextFile.txt will give you all the files, rather than the top directory.
     
Mac Enthusiast
Join Date: Jul 2003
Location: Kali
Status: Offline
Reply With Quote
Sep 2, 2003, 01:51 PM
 
Originally posted by DevNine:
Hi,
I would like to list all the contents of all my cds.Each cd has multiple folders and I would like all these names in alphabetical order in a text file.Anyone know an application that does just this ? Thanks in advance.

GUI method:

Drag the folder into a new BBEdit window, this might work in BBEdit Lite. I wouldn't count on it in TextEdit, but you could try any of the programmers/HTML oriented editors.

I do this occasionally with my iTunes folder. Work great.

Or go CLI as suggested.
     
Grizzled Veteran
Join Date: Feb 2001
Location: Pittsburgh
Status: Offline
Reply With Quote
Sep 2, 2003, 03:07 PM
 
Originally posted by Jim_MDP:
Drag the folder into a new BBEdit window, this might work in BBEdit Lite. I wouldn't count on it in TextEdit, but you could try any of the programmers/HTML oriented editors.
Does this work for files multiple levels down the folder hierarchy?

Ironically, typing the command line listed below will probably take less time than it just took to read this post.
Code:
ls -R cd_name > ~/Desktop/file_name.txt
Instead of typing 'cd_name' you can drag the icon into the terminal window and it will type the name for you. The '>' symbol means to dump the output of the ls command into the supplied file name. The '~' is an abreviation of the path to your user folder.
     
Dedicated MacNNer
Join Date: Nov 2001
Location: england
Status: Offline
Reply With Quote
Sep 2, 2003, 05:58 PM
 
Would it be possible to make an applescript to do this? being a terminal numnut, and needing something like this quite often, id love it. It would make a perfect replacement for the os 9 'print window' command that just about every studio (ive worked at) uses to catalogue cd's :/
     
Fresh-Faced Recruit
Join Date: Apr 2002
Location: New York City
Status: Offline
Reply With Quote
Sep 3, 2003, 12:35 PM
 
"Print Window" is a decent free program to do this. I am not sure if it can order the names and things like that... but at least it can print windows.

You can find it at:
http://www.versiontracker.com/dyn/mo...amp;vid=106265

In OS X another thing you can do is this:
1. Select all the files in the finder window (Command-A).
2. Go to Edit-Copy. (Command-C)
3. Go to Text Edit and Paste (Command-V)

There you have a text list you can print.
I suppose you may also be able to paste into Excel and sort them there but i haven't tried it
Dan Rodney | instructor - graphic designer
Adobe Certified Instructor, Adobe Certified Expert
http://www.danrodney.com
I hope you'll have a look at my InDesign scripts.
     
Mac Enthusiast
Join Date: Jul 2003
Location: Kali
Status: Offline
Reply With Quote
Sep 3, 2003, 04:35 PM
 
Originally posted by dfiler:
Does this work for files multiple levels down the folder hierarchy?
Yes. If you have an iTunes folder, try it. It's a sweet tip. Credit to macosxhints, I believe.
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 10:18 AM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2