MacResource
Print a list of folder names - Printable Version

+- MacResource (https://forums.macresource.com)
+-- Forum: My Category (https://forums.macresource.com/forumdisplay.php?fid=1)
+--- Forum: Tips and Deals (https://forums.macresource.com/forumdisplay.php?fid=3)
+--- Thread: Print a list of folder names (/showthread.php?tid=282126)

Pages: 1 2


Print a list of folder names - Dik2 - 11-13-2023

I have a window open showing a list of folders. I want to copy those names into a Microsoft Word doc.
How, please.
Thanks


Re: Print a list of folder names - Joseph C. - 11-13-2023

I’m able to copy a list of folders into Word using these steps:

1. In the Finder, Select all folders, Command C and then Command V into an Excel spreadsheet.
2. In Excel, Select all contents and then, Command C and then Command V into an TextEdit Document.
3. In Text Edit Select all contents, Choose “Make Plain Text” from the Formatting window.
4. In Text Edit Command C and then Command V into a Word document.

I’d love to know a simpler way to do this.


Re: Print a list of folder names - Dik2 - 11-13-2023

WOW, me too!
I'll try that now.
Thank you


Re: Print a list of folder names - Dik2 - 11-13-2023

I Don't see a select option in the finder bar. Ventura.


Re: Print a list of folder names - gadje - 11-13-2023

Open the Termina, navigate to that folder, and use the command
ls
which should give you a list of Fodlers and a list of files. Folders first, then files.


Re: Print a list of folder names - gabester - 11-13-2023

Open macOS Terminal

type this command then press enter:

cd [drag folder with folder contents you want to list here]


then type this command then press enter:

ls -1d */  | pbcopy


the -d switch only shows folders and the -1 switch formats output into one column, then pipe to pbcopy puts the contents in your clipboard.

Then paste the list whereever you want.

It bears mentioning that Joseph C's steps above may be overly complex.... you ought to be able to (1) sort by kind (2) select all / select the folders in your Finder window, then (3) copy, then (4) paste into TextEdit, then (4) change format to plain text if you never changed from the rich text default, then copy and paste whereever you want your plain text... No explicit need for Excel... In Word I believe there is a keyboard shortcut to force it to paste plain text so you can skip the TextEdit steps entirely and use something like cmd-shift-v...

I think if you paste directly into Word from the Finder sometimes it might try to add any filesystem objects as attachments instead of just giving you the text of the names.


Re: Print a list of folder names - wurm - 11-13-2023

I'm obviously not getting what you're trying to to do, but copy/paste into a new Word doc just worked for me. No extra steps.




Re: Print a list of folder names - gadje - 11-13-2023

I think you copied files and filder, he wants only folders


Re: Print a list of folder names - Dik2 - 11-13-2023

Yes just a list of the folder names.


Re: Print a list of folder names - rich in distress - 11-13-2023

Screen capture and select text?
Although that would require a newer OS.