Making a text list of file info in Finder folders?

Discussion in 'Mac Programming' started by jackdanny, Mar 2, 2009.

  1. macrumors newbie

    Aug 6, 2007
    Hi all,

    Just wondering if there was a way to make a text list with all the info that you see in a folder directory in Finder? I have varies folders with large amounts of files I want to put into a database. I know that selecting all in the Finder, then copy and pasting into a Document puts in the file names, but I want the file Size, Kind etc to be pasted too.
    Any help much appreciated!
  2. macrumors 68040


    Jan 10, 2005
    Dallas, TX
    I'd hit the terminal. ls -l output may be all you need. You can redirect it to a file using >. So, say you want everything in your Desktop in a file on the Desktop... open terminal and type:
    ls -l > Filelist.txt

    And you'll have a file on your desktop with all sorts of information. There are lots of ways to change exactly what ls outputs, so if it's not exact you could tweak the command. You can type "man ls" to get the manpage, or take a look here:


Share This Page