Okay, I'm stumped.
December 1, 2007 5:39 PM
Subscribe
Scriptfilter: I want a list of filenames dumped into text file and put somewhere. How!?
Okay, so I've gotten religious about backing up my HDD, but I don't waste the space backing up my applications, aside from a few important ones. Instead, I'd prefer just a list of the files inside my Application folder so I can go and download them if I need to.
Soooo, is there any way that I can write a script that will 1) grab the names of all the files in a specific folder, 2) dump all the file names into a text file (or similar,) and 3) save that folder where ever I so choose.
I'm on a Mac, if it matters at all (AppleScript, or whatnot)
posted by InsanePenguin to computers & internet (10 comments total)
ls -1 /Applications/ > filelist.txt
where filelist.txt will go to the current directory, but can easily be put anywhere by adding the path to the front of it. The -1 provides a list with each app on a separate line.
posted by ranglin at 6:01 PM on December 1, 2007