Can I have OS X print out a text file with the contents of a folder?

Discussion in 'Mac Basics and Help' started by SebZen, May 31, 2009.

  1. SebZen macrumors 6502

    Joined:
    Apr 12, 2009
    #1
    This is my first Mac and on my PC I would occasionally email myself a simple list consisting of what programs I have installed so that next time I format (or if something goes wrong) I would know what I had installed.

    Problem is, with this Mac I have too many quality software to type out by hand so I'm wondering if there is a program or a function built in to OS X (maybe terminal command even, but I'd prefer something visual) to list the contents of a folder and save it to a text file?

    I just want it to scan my Applications folder pretty much
     
  2. dukebound85 macrumors P6

    dukebound85

    Joined:
    Jul 17, 2005
    Location:
    5045 feet above sea level
    #2
    do this

    open terminal

    type

    ls /applications

    copy the results in a txt file and youre set
     
  3. dmmcintyre3 macrumors 68020

    Joined:
    Mar 4, 2007
    #3
    open terminal (search with spotlight) and type:
    Code:
    ls (directory[you can just drag the folder in])
     
  4. SebZen thread starter macrumors 6502

    Joined:
    Apr 12, 2009
    #4
    Of course! Forgot about it from my days experimenting with Linux :p

    Code:
    ls /applications > apps.txt
    did it
     

Share This Page