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.
Moderator billford
(moderator) Fri 30-Jan-09 09:13:20
Print Post

Re: Printing a file list


[re: s_h] [link to this post]
 
Thanks for that Sarah

~~~~~~~~~~~~
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) Fri 30-Jan-09 09:30:13
Print Post

Re: Printing a file list


[re: deleted] [link to this post]
 
You live and learn. I didn't know about the "-1" switch. But, from the man page, "This is the default when output is not to a terminal."

Also interesting to see that some switches override each other, with only the last being effective - e.g. "ls -l -1"might not produce what you initially expected.
Moderator billford
(moderator) Fri 30-Jan-09 09:35:07
Print Post

Re: Printing a file list


[re: deleted] [link to this post]
 
When I got the listing, a lot of the lines started with:

-rw-r--r--@ 1 billford...

What's the '@' ?

~~~~~~~~~~~~
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) Fri 30-Jan-09 10:10:41
Print Post

Re: Printing a file list


[re: billford] [link to this post]
 
From the man page:

"If the file or directory has extended attributes, the permissions field printed by the -l
option is followed by a '@' character. Otherwise, if the file or directory has extended security
information, the permissions field printed by the -l option is followed by a '+' character."
Moderator billford
(moderator) Fri 30-Jan-09 10:17:29
Print Post

Re: Printing a file list


[re: deleted] [link to this post]
 
Ta

~~~~~~~~~~~~
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) Sat 31-Jan-09 10:16:27
Print Post

Re: Printing a file list


[re: deleted] [link to this post]
 
Is there any way to grab the entire contents of a Finder panel even though some of it is off screen?
mervt
Moderator billford
(moderator) Sat 31-Jan-09 10:31:22
Print Post

Re: Printing a file list


[re: deleted] [link to this post]
 
I assume you mean as a graphic?

Command-Shift-4, move the "camera" to the window, then Spacebar will do that.

It'll grap the entire window, but you can crop it to just the bit you want with Preview.

~~~~~~~~~~~~
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) Sat 31-Jan-09 12:04:26
Print Post

Re: Printing a file list


[re: billford] [link to this post]
 
I have tried this and all I can get is what's on the screen, not the entire contents of the window.
have also tried using 'grab'. shift-command-w
I must be dumb or have a glitch.
mervt
Moderator billford
(moderator) Sat 31-Jan-09 12:13:45
Print Post

Re: Printing a file list


[re: deleted] [link to this post]
 
Odd, I've just tried it again here and it worked even with part of the window off-screen and part behind another program... I'm stuck

~~~~~~~~~~~~
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) Sat 31-Jan-09 12:36:48
Print Post

Re: Printing a file list


[re: billford] [link to this post]
 
Just to make sure I'm not completely senile, do I position the camera anywhere in the required window?
Thanks for the help
mervt
Standard User deleted
(deleted) Sat 31-Jan-09 12:44:55
Print Post

Re: Printing a file list


[re: billford] [link to this post]
 
It must be me. I was using my iMac and have just tried it on my Macbook and get the same result ?!?!
mervt
Moderator billford
(moderator) Sat 31-Jan-09 12:46:36
Print Post

Re: Printing a file list


[re: deleted] [link to this post]
 
Exact sequence that works here:

Command-Shift-4
Move pointer to window
Spacebar
Left click

PNG file gets saved to desktop.

~~~~~~~~~~~~
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.
Moderator billford
(moderator) Sat 31-Jan-09 12:47:24
Print Post

Re: Printing a file list


[re: deleted] [link to this post]
 
Hold on while I try my MacBook...

~~~~~~~~~~~~
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.
Moderator billford
(moderator) Sat 31-Jan-09 12:51:28
Print Post

Re: Printing a file list


[re: deleted] [link to this post]
 
Works fine on my MacBook (the new aluminium one)



~~~~~~~~~~~~
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) Sat 31-Jan-09 12:58:13
Print Post

Re: Printing a file list


[re: billford] [link to this post]
 
I just dunno. I have tried every which way and all I get is what was actually on screen not the entire contents of the window.
I tried the ADSL window this time selecting show all and all I get is the top 3 or 4 posts which were on screen.
Ah well - thanks for the time
Will let you know if ever I crack it.
mervt
Moderator billford
(moderator) Sat 31-Jan-09 12:59:37
Print Post

Re: Printing a file list


[re: deleted] [link to this post]
 
Wild shot- are you running Spaces?

Maybe it won't work if the window is outside the 'space'?

~~~~~~~~~~~~
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) Sat 31-Jan-09 13:18:17
Print Post

Re: Printing a file list


[re: deleted] [link to this post]
 
Same as you Mervt, using Grab on my Macbook I can only get the contents of a window as it is visible in the window at the time.

For instance if I have Applications open in List view in Finder (too many to fit in one window), 'Capture Window' will only capture those in the open visible window. I can't do what Bill says he can do using Command-Shift-4 either, rather than Grab.

Not using Spaces.
Moderator billford
(moderator) Sat 31-Jan-09 13:41:36
Print Post

Re: Printing a file list


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

Applications open in List view in Finder (too many to fit in one window)


I'm wondering if we're talking about the same thing... I can only grab what would be visible in the window if it were all on-screen, ie if I put half the window off the edge of the monitor I still get all of it.

I can't grab anything that would need me to scroll the window to see it. Not convinced I've made myself clear, I hope so

~~~~~~~~~~~~
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) Sat 31-Jan-09 13:51:15
Print Post

Re: Printing a file list


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

I can't grab anything that would need me to scroll the window to see it.


That is how I understood what Mervt wants to do.
Moderator billford
(moderator) Sat 31-Jan-09 13:56:43
Print Post

Re: Printing a file list


[re: s_h] [link to this post]
 
It could be read either way...

all I can get is what's on the screen, not the entire contents of the window

I interpreted 'screen' as 'monitor', but it's ambiguous.

Clarification required

Merv?

~~~~~~~~~~~~
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) Sat 31-Jan-09 14:31:59
Print Post

Re: Printing a file list


[re: s_h] [link to this post]
 
Yes that is precisely what I want to do, so it looks as though it's undo-able.
mervt
Moderator billford
(moderator) Sat 31-Jan-09 14:37:00
Print Post

Re: Printing a file list


[re: deleted] [link to this post]
 
Sorry for the confusion

~~~~~~~~~~~~
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) Sat 31-Jan-09 14:55:03
Print Post

Re: Printing a file list


[re: billford] [link to this post]
 
No prob. Thanks for the help. Someone please crack it. It would be most useful for saving grabs of settings in modems, email address preferences, site access details in Dreamweaver etc. etc.
mervt
Standard User deleted
(deleted) Sun 01-Feb-09 15:52:02
Print Post

Re: Printing a file list


[re: deleted] [link to this post]
 
There is a couple of Applescripts for printing a folder listing under printing Scripts (Applescript in Applications Folder)
Print Window With Subfolders.scpt and Print Window.scpt
These I think will print a list but would need to be modified to save as a text file
Standard User deleted
(deleted) Sun 01-Feb-09 16:39:54
Print Post

Re: Printing a file list


[re: deleted] [link to this post]
 
Also found this PrintFinder which might do the trick.
Standard User deleted
(deleted) Mon 02-Feb-09 14:20:14
Print Post

Re: Printing a file list


[re: deleted] [link to this post]
 
Thank you. Yes the scripts will be useful in recording the contents of folders, but what I really want to do is what grab does and that is take a pic of the entire contents of an on screen window.

An example would be - - I am in the ADSL site and am viewing a long list posts on a particular topic and I would like to preserve all of them as a pic in one go.

mervt
Standard User s_h
(knowledge is power) Mon 02-Feb-09 20:00:59
Print Post

Re: Printing a file list


[re: deleted] [link to this post]
 
To save a full web page as it appears in a scrollable window, if you use Firefox you can use the ScrapBook extension. I have been using this for several years now, very useful. It can also do an efficient search of pages saved. Note that by default the files will be saved in a folder in your FF profile (this can be altered), and I assume you need the extension to view them. Scrapbook will also save a precise selection from a web page. It's easy to use and organise.

However while Scrapbook will save a scrollable page of the window open in your browser, it won't save any additional pages of a full forum thread for instance. To capture a full length thread (all the pages) in a TBB forum, one option is to use the "Print Thread" view button (bottom right of the page), then 'Save Page As" from the File menu, and save as a Web Page. This is fairly efficient and the files can be opened in any browser window.

There is a (free) programme called Paparazzi! - a small utility for Mac OS X that makes screenshots of webpages. Not tried it though.
Standard User deleted
(deleted) Tue 03-Feb-09 00:53:33
Print Post

Re: Printing a file list


[re: s_h] [link to this post]
 
Yes - that's it. Firefox Scrapbook does just what I need - at last!
Thanks a bunch s_h

mervt
Standard User s_h
(knowledge is power) Tue 03-Feb-09 12:05:34
Print Post

Re: Printing a file list


[re: deleted] [link to this post]
 
Good news smile
I find a myriad uses for Scrapbook. Saving records of a travel booking for instance. There are all sorts of fleeting web pages which can't be bookmarked in the normal way. If later you find you want a PDF of a Scrapbook page, use the printer dialogue.
Standard User deleted
(deleted) Tue 03-Feb-09 17:09:23
Print Post

Re: Printing a file list


[re: s_h] [link to this post]
 
I use a similar approach but using a small paid for app called Yojimbo it gives me an extra global option in the Print to pdf menu in any application. And as a .mac user it syncs to idisk and all my other macs too.

Cracking app. (but not free).

HTH
Pages in this thread: 1 | 2 | 3 | 4 | (show all)   Print Thread

Jump to