PDA

View Full Version : Making a text list of file info in Finder folders?




jackdanny
Mar 2, 2009, 05:02 PM
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



lee1210
Mar 2, 2009, 05:29 PM
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