Making a text list of file info in Finder folders?

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

  1. macrumors newbie

    #1
    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!
    Cheers
    JD
     
  2. macrumors 68040

    lee1210

    #2
    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:
    cd
    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:
    http://unixhelp.ed.ac.uk/CGI/man-cgi?ls

    -Lee
     

Share This Page