Technical Discussion
  >> Apple Issues


Register (or login) on our website and you will not see this ad.


These posts have been archived and can no longer be replied to or modified.
Pages in this thread: 1 | 2 | 3 | 4 | (show all)   Print Thread
Moderator billford
(moderator) Thu 29-Jan-09 15:24:04
Print Post

Printing a file list


[link to this post]
 
If I've got a finder window open in list view, how can I print the list of files?

Alternatively, what are the commands from a terminal window to pipe the list into a text file? I'd also need the command to change drive, it's an external one...

All help appreciated

~~~~~~~~~~~~
Bill

[email protected]

The author of the above post is a thinkbroadband moderator but it does not constitute an official statement on behalf of thinkbroadband.
Standard User deleted
(deleted) Thu 29-Jan-09 16:03:41
Print Post

Re: Printing a file list


[re: billford] [link to this post]
 
With the pointer in the window, press space + apple + 4 then spacebar and a camera will appear with the finder window highlighted - click and it will be saved.

Edited for key combination

Edited by deleted (Thu 29-Jan-09 16:58:09)

Standard User deleted
(deleted) Thu 29-Jan-09 16:07:24
Print Post

Re: Printing a file list


[re: billford] [link to this post]
 
cd /volumes/<vol name>/<directory>

ls > temp.txt


will create the file temp.txt (in the directory you have changed to).

(Fill in your own values for <vol name> and <directory>)
If you want all file details use "ls -l" rather than "ls"


Register (or login) on our website and you will not see this ad.

Moderator billford
(moderator) Thu 29-Jan-09 16:14:20
Print Post

Re: Printing a file list


[re: deleted] [link to this post]
 
That's the one I want, thanks

@ PatFlanel- I think you mean "Command-Shift-4, then Spacebar", that does a screen grab... doesn't help if I want a text listing or if the list won't fit on the screen . Thanks anyway.

~~~~~~~~~~~~
Bill

[email protected]

The author of the above post is a thinkbroadband moderator but it does not constitute an official statement on behalf of thinkbroadband.
Standard User deleted
(deleted) Thu 29-Jan-09 16:57:05
Print Post

Re: Printing a file list


[re: billford] [link to this post]
 
Ooooops wrong combination. Sorry.....
Standard User deleted
(deleted) Thu 29-Jan-09 18:56:43
Print Post

Re: Printing a file list


[re: billford] [link to this post]
 
You may, or may not, like to check out a few other OS X commands.
Moderator billford
(moderator) Thu 29-Jan-09 19:22:03
Print Post

Re: Printing a file list


[re: deleted] [link to this post]
 
Cheers for the link... but it wouldn't have helped- doesn't seem to mention the /volume parameter, which is what I really needed.

man cd doesn't help either

TBH I'm (sort of) au fait with most of the commands I'm likely to need, it's the options I'm somewhat light on.

And if I'm stuck, it's usually quicker to ask in here than trying to find it the hard way . I know that sounds idle of me, but I don't often have to ask twice...

~~~~~~~~~~~~
Bill

[email protected]

The author of the above post is a thinkbroadband moderator but it does not constitute an official statement on behalf of thinkbroadband.
Standard User s_h
(knowledge is power) Fri 30-Jan-09 00:25:56
Print Post

Re: Printing a file list


[re: billford] [link to this post]
 
In reply to:

If I've got a finder window open in list view, how can I print the list of files?


I use this method, from the Help - it comes under the heading "Printing by dragging documents":

"To get a printed list of the contents of a folder, drag the folder's icon to the printer's icon or to the Printer Setup Utility icon."

(To create a desktop printer, open Printer Setup Utility, select the printer in the printer list, and choose Printers > Create Desktop Printer.)

You can also save the list of files as a PDF from the printer dialogue.
Standard User deleted
(deleted) Fri 30-Jan-09 02:22:06
Print Post

Re: Printing a file list


[re: deleted] [link to this post]
 
In reply to:


cd /volumes/<vol name>/<directory>

ls > temp.txt


will create the file temp.txt (in the directory you have changed to).

(Fill in your own values for <vol name> and <directory>)
If you want all file details use "ls -l" rather than "ls"



Or you might want the output to contain one file name per line, in which case you can just use:

ls -1 <path_to_folder>

That's a number 1
Moderator billford
(moderator) Fri 30-Jan-09 09:12:23
Print Post

Re: Printing a file list


[re: deleted] [link to this post]
 
I needed the date/time stamps of the file, preferably in order, so I used

ls -l -t

~~~~~~~~~~~~
Bill

[email protected]

The author of the above post is a thinkbroadband moderator but it does not constitute an official statement on behalf of thinkbroadband.
Pages in this thread: 1 | 2 | 3 | 4 | (show all)   Print Thread

Jump to