Copy Finder Names To A File 4


Copy Finder Names To A File


Sometimes you may need to send a list of all of the files in a folder to someone, for what ever reason this is a really simple. There are two options, the simple “Mac” method, which involves drag and drop, or the more complicated but feature rich “Terminal” method. Both are easy to implement.

If you want to send a list of files in a folder. Select all of the files, then drag them into a Text file or an email. It will then process the list and display each one on a new line. Really simple. Make sure you have rich text turned off other wise you can end up displaying the images instead of the file names.

If you want to do this trick in Terminal where you can access more features simple type the following:

ls > file.txt

This will list all of the files in a folder and send them to the file called “file.txt”. You will first have to navigate to folder in question you want to list. You then have a file with all of the files inside of it.

With the list file command you can use all of the options in the command. For more information check the the manual page by typing the following in Terminal.

man ls

Its a simple trick, but could come in very useful. I reckon if you do a bit of experimenting you can get the list to display in other programs.

If you want to keep up with the latests post from Mac Tricks And Tips I recommend you subscribe to the RSS Feed.

Where To Next?

  • Subscribe To Mac Tricks And Tips

4 Responses to “Copy Finder Names To A File”

  1. 1

    If you only want the names of a few files you could select the files in Finder, copy them to your clipboard, then paste them into a plaintext TextEdit document. (Convert to plaintext using Cmd-Shift-T.) This will give you the filenames as a list.

    Comment By MacTipper on January 18th, at 5:07 pm

  2. 2

    I’m not one to avoid Terminal, but “PrintFinder” is a great app when you need to quickly and easily output a list of folder contents.

    Comment By junkmailme666 on January 19th, at 2:47 pm

  3. 3

    How do you tell the command which folder you want to list? If I enter what’s above I only get Applications, Documents, etc. and the contents of the trash. Thanks.

    Comment By Eric on March 9th, at 8:58 pm

  4. 4

    The tip says to “drag them into a Text file or an email”

    WARNING: This does NOT work with Apple Mail. If you drag a list of files, they will be ATTACHED to the email. If you drag a big list, and use an IMAP Drafts folder, you can tie up/screw up your email for HOURS.

    Please correct this tip before more unsuspecting users get screwed…

    Comment By concerned reader on July 22nd, at 7:29 pm