MacMusic  |  PcMusic  |  440 Software  |  440 Forums  |  440TV  |  Zicos
going
Recherche

3 Ways To Print File Listings On Your Mac

mercredi 3 avril 2019, 15:00 , par MacMost
If you need to print the list of files in a folder, you can do it using TextEdit, the Terminal or by using a special trick involving your printer. Using TextEdit is a simple drag-and-drop, but you must be working with a plain text document. By using the ls command in the Terminal, you can customize which information is included with the listing. You can also simply drag and drop a folder to an alias to your printer, but you must create that alias first.



Video Transcript / CaptionsCLICK TO EXPAND
Closed captioning for this video is available on YouTube: 3 Ways To Print File Listings On Your Mac.
Hi, this is Gary with MacMost.com. MacMost is brought to you by the more than 300 people that support it on Patreon. Find out how you can become a part of it at macmost.com/patreon.

Today I'm going to show you how to print out a file listing of the contents of a folder. Say you have a folder like this and it has a variety of different files and folders in it. Unfortunately there's no Print command in the Finder. So I can select this folder here. You think under File, Print it might be a way to actually print or export a list. But there isn't. However you can still do it several ways.

So the first one I'm going to show you is I'm going to select all the items I want. So I use Shift and click there to select everything. I'm going to go into TextEdit. I'm going to create a new document and note that it has to be a plain text document. Not a rich text one. I'm going to simply drag these files to this document. Since it's a text editor it's going to correctly assume that I want a text version of this which is basically going to be the paths for all the files. You can see here's a listing of all the files in TextEdit. So I can print that out. It gives me the full path. So if I wanted to make it simpler I could actually select this, copy to a find and paste it in there and then say replace it with nothing. So I'm going to have nothing here on this next line. To Replace All. So now I've got just the file names since I've replaced all the paths.

Now another thing that I could do is I could get, not just the files in this folder, but the subfolders as well. If I go to List View and I open up some of these subfolders in there and I could do all of them or I can do just some. Whatever I want. So now you'll can see if I click on one and I can grab them all, I'm actually going to use Command A this time to grab all of them. You can see it grabs the files even in the subfolders. So now when I drag and drop into TextEdit I get files even down inside some of those special folders there. So I get a longer listing. So that's how you can do it just using TextEdit just to get the bare minimum. Just the file names.

Now next I'm going to try this in Terminal. So Terminal, being command line interface to your Mac, is a great way to get file listings. So I could easily get into this folder by simply going CD, for change directory, and I'm going to drag from the Finder the folder there and it's going to give me the full path to it. So now all I have to do is hit Return and I'm in this directory. Now I can actually do LS, for listing, and just see what files are there. So you can see now I've got the names of these files. I can select and Copy and Paste them into TextEdit of something else. I could actually even just print the window here if I don't mind the stuff at the top and the bottom.

But I could also do more than that because I can do LS and dash L and L would give me more stuff. It's going to give me a little listing here. It's going to include the size, the date, and the file name, and some other stuff like permissions and such. You can get really specific on what LS will show you. So if you want to play around with this do man, for manual, LS and you get a ton of different options for using LS and then you can have this customized output that you can then copy and paste and printout easily.

Alright, so here's a final way to do it. That's by dragging and dropping the folder to your printer. Now how do you do that? How do you drag and drop something to the printer. Well, if you go into System Preferences and then you go to Printers and Scanners you'll see your printers here. It would be great if you could drag and drop it there. But you can't. However you can drag this out and stick it anywhere you want. I showed you awhile ago how to stick it in your Dock. You can also stick it on the Desktop. Wherever you put it it's a shortcut to that printer.

I can now quit System Preferences and now I have something that I can drop it to. So instead of dropping all these files here, because if I drop an individual file it's actually going to print that file, but if I drop a folder onto it this is what I get. It's going to go and want to print. It's going to go and give me a little preview here of this document. You can see it's going to give me file names. It's going to give me the size and the time. So now I can print it. I can even go and open it and save it as a PDF or directly open it in Preview so I can see here my stuff. I can even copy and paste this text if I wanted to or just send it along or continue by printing it.

Related Posts:
Easier Ways To Open File With, How Do I Convert a Pdf File To an EPub File?, Free Ways To Help Support MacMost, Why Do I Have 2 Documents Folders In iCloud Drive?
https://macmost.com/3-ways-to-print-file-listings-on-your-mac.html
News copyright owned by their original publishers | Copyright © 2004 - 2024 Zicos / 440Network
Date Actuelle
sam. 23 nov. - 05:44 CET