Printing entire folder contents list

Woodlandjustin

macrumors member
Original poster
Jan 21, 2007
38
1
Hi guys,
I have been wanting to do this for ages and have never been able to find out:

How can I print the entire contents list of a folder? Screen grab will not work, because it only takes a snapshot of the contents displayed on the screen at one time. That's fine for a folder with only 20 items. But how about with 200 items? Or 2000? (I have tried multiple screen shots and that is extremely tiresome and impractical).

Is there any way to just save the contents list as an image file, text file, or spreadsheet? I spreadsheet would be easiest, with all the sizes, dates created etc. listed in it. But any way of saving the list in whatever form would be very useful for me to hear about.

Thanks in advance!
 

smirk

macrumors 6502a
Jul 18, 2002
678
47
Orange County, CA
I'm not in front of a Mac right now, but for printing can you not open the Finder window and then just select File->Print? From the Print dialog box you could then save as PDF or something.

Or to get a list of files, can't you just open the Finder window, command-A to select all, command-C to copy it to the clipboard, then open Excel or TextEdit and paste it in?
 
Comment

Woodlandjustin

macrumors member
Original poster
Jan 21, 2007
38
1
I'm not in front of a Mac right now, but for printing can you not open the Finder window and then just select File->Print? From the Print dialog box you could then save as PDF or something.
No. No print option on Finder windows.

Or to get a list of files, can't you just open the Finder window, command-A to select all, command-C to copy it to the clipboard, then open Excel or TextEdit and paste it in?
No. That copies the files themselves, not the information displayed about them.

Anyone any ideas? The guys at Mac support had no idea.
Thanks!
 
Comment

Weaselboy

Moderator
Staff member
Jan 23, 2005
30,000
9,659
California
How can I print the entire contents list of a folder?
Code:
cd ~/Documents
ls > ~/Desktop/files.txt
Open Terminal app from /Applications/Utilities. Paste or type in the first line above then hit enter (substituting whatever folder name you want to list if it is not Documents like my example). Then paste or type in the second line and hit enter. That will give you a text file on your desktop with a list of all files in the folder.

You can also apply options to the ls command to sort by different criteria. In the Terminal type "man ls" (without the quotes) to see all the options.
 
Comment

Woodlandjustin

macrumors member
Original poster
Jan 21, 2007
38
1
Hi Weaselboy,
Thanks, that seems to be coming close. Is there really no way to print the info from finder though? It would be so useful because it shows the folder colours (I have mine colour coded), and the folder sizes.
 
Comment

Weaselboy

Moderator
Staff member
Jan 23, 2005
30,000
9,659
California
Hi Weaselboy,
Thanks, that seems to be coming close. Is there really no way to print the info from finder though? It would be so useful because it shows the folder colours (I have mine colour coded), and the folder sizes.
Sorry, I don't know of a way to capture the colors in that text output.
 
Comment
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.