Nov 30, '06 07:30:02AM • Contributed by: teamloco
So I patched together the following simple AppleScript, which I run at startup. It outputs the ls command to a text file in my Documents folder, which is backed up nightly. I can then use this to recount all the applications I may have forgotten about. Paste this code into Applescript:
do shell script "ls /Applications >~/Documents/apps.txt"
I saved mine as an application, and then added it to my login items in the Accounts System Preferences panel.
As many have said before, I am not a scripter and have no real idea what I'm doing. I would have loved to make this a bash script that ran in the cron jobs, but I'm not that smart to figure it out. Also the list isn't formatted very well, and it leaves the .app extension intact. Nonetheless, this will help me remember those obscure applications I use in the event I have (eek!) another hard drive failure.
[robg adds: Converting this to a cron task that runs every hour or twice a day wouldn't be hard at all -- however, in the interest of accuracy, I'll let a commenter with more Unix skills than I take on that task! If you have applications you store in more than one location, you could add additional lines to the AppleScript, but use two greater-than signs to append the data to the existing file: do shell scdript "ls /Volumes/myapps >>~/Documents/apps.txt"]
