How To Get File Listings As Text



https://macmost.com/e-3128 If you need a file listing to use in a document you can get it by copying and pasting from the Finder if you know a trick. But you can also get file listings as text from the Terminal and then wrap that command into a Shortcut.

FOLLOW MACMOST FOR NEW TUTORIALS
▶︎ Subscribe here at YouTube — http://macmost.com/j-youtube (And hit the 🔔)

FREE EMAIL NEWSLETTER
▶︎ See what’s new each week and more — https://macmost.com/newsletter 📬
▶︎ Per-Video Email Notifications — http://macmost.com/ytn 📆

SUPPORT MACMOST AT PATREON
▶︎ https://macmost.com/patreon ❤️

00:00 Intro
00:49 Copy and Paste From the Finder
01:57 Copy and Paste With Subfolders
03:56 Cleaning Up the Output
06:34 List Files In the Terminal
12:06 Putting the Terminal Command In a Shortcut

#macmost #mactutorial

This Post Has 24 Comments

  1. @philiprand3720

    I thought CSV served to transmit Contact items, but I'll explore its potential for dealing with pdfs and making them palatable for a spreadsheet. Infinite thanks again.

  2. @philiprand3720

    Again many thanks! As for my bank statements, I'll experiment with Preview (Anteprima in Italian).which is terrific in many ways, but I'm sure my "commercialista" /accountant) will cope with PDF. She is probably Windows, but I think a Numbers file is perfectly readable to an Excel user.

  3. @bitsmith

    Bravo Gary! Love the use of a CLI pipeline and regular expressions wrapped up in a Shortcut to come up with a great solution! Thanks again for showing off the non-obvious power under the hood of macOS.

  4. @MosheFeder

    Gary, this is great, but I really want is an app that will do something similar for my iPhone and iPad. It should not just produce a list, but pull the description of each app from the App Store.

  5. @kqschwarz

    Unbelievably useful tips and fabulous presentation.

  6. @johnvender

    Great video Gary. When I was at university studying Computer Science in the late 1970s we mostly used Unix and since then I have worked with it it quite a lot and I'm comfortable working in Terminal so I installed Command Line Developer Tools and MacPorts and then Tree. It's a very useful tool and not all that difficult to install. Many Mac users don't realise that under the pretty user interface is a fully functional Unix system which anyone familiar with any flavour of Linux, any of the BSDs, Solaris, AIX or any other Unix or Unix like operating system can use to get lot more capabilities.

  7. @xultrac

    This trick with the Finder is amazing. Thank you

  8. @MrDsalomon

    I use the following utilities. Work with my old OS 10.14

    PRINT WINDOW, by searchwaresolutions $20
    Can print/save the contents of a folder in text, Excel, or CSV

    File List Export, by gtrigonakis
    $4.99 on Mac App Store
    Can print/save the contents of a folder in Excel or CSV

  9. Nice ideas. You could just make a recursive list with ls -R and arrow it out to a plain text file, as well. I generally do that with the current date when searching through music and the like. I don't have enough documents to have to do it.

  10. @garrysingh4484

    💡Automator or Shortcut is your best friend: You won't have to deal with removing folders in the listing.
    I have been using Automator to achieve this for years:
    – Create a Java script to get the file path
    – Add copy to clipboard

  11. @JonBushell

    Great! I think you can drag folder contents to excel too and it will make a file listing. But only works in Mac apparently.

  12. @SoNowWhat

    Oh, will this tutorial come in handy. Many thanks.

  13. @philiprand3720

    I would be happy to find a systematic presentation of Terminal (for Dummies?) but you have given me some ideas. I would like to get monthly bank statements into Excel, for example, whereas they are now in disparite forms, My tax preparer (here in Italy) likes to have them in Excel forms, which the banks no longer offer. Since Notes happily digests screenshots, I'm going to see if it can be put to use at least to put my data in a uniform form if not in a spreadsheet.

Leave a Reply