New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Development and Darwin Discussion and questions about development for Mac OS X.

Auto Generated Application List


Post Reply New Thread Subscribe

 
Thread Tools
noah_swanson

 
Member Since: Jan 25, 2010
Posts: 4
noah_swanson is on a distinguished road

noah_swanson is offline
I recently had the catastrophic hard drive failure on my laptop. I now have a huge external drive that I use for TimeMachine on my Desktop and my Laptop. In order to save space backing up I want to exclude the applications folder and simply have a text file generated that will list all of the installed apps (and version-if possible). Then I would have this text file backed up instead of the xxGB sized applications folder.

Would this be easiest if done in a shell script, apple script, maybe automator can help?

Has anyone else done this? Any ideas?

Thanks!
QUOTE Thanks
clayneal

 
clayneal's Avatar
 
Member Since: Mar 27, 2009
Location: Lincoln Nebraska
Posts: 2,146
clayneal is a glorious beacon of lightclayneal is a glorious beacon of lightclayneal is a glorious beacon of lightclayneal is a glorious beacon of lightclayneal is a glorious beacon of lightclayneal is a glorious beacon of light
Mac Specs: late 08 macbook 2.0 4gig 320hdd10.7.3 32 gig iPhone 4s

clayneal is offline
A question ? If you dont include your apps folder in the backup will you have any apps backed-up ? I may be wrong but you will not be saving hdd space as TM just keeps adding back ups till disk is full then starts deleting the oldest to continue. I am sure someone will come along to shoot me down or confirm but If it were me i would let time machine do its job.

Just my thoughts
Clay

MY ADVICE COMES WITH A DOUBLE YOUR MONEY BACK GUARANTEE!
QUOTE Thanks
noah_swanson

 
Member Since: Jan 25, 2010
Posts: 4
noah_swanson is on a distinguished road

noah_swanson is offline
Correct, I'd have no Apps folder backed up. The apps really aren't my priority as far as retaining data since I have all of the media to install (sure it'll take more time to recover if the unthinkable happens again) but with a 1.5 TB backup and a desktop with 1TB and a laptop with 250GB, I'm sure it'll get full fast. No need to have the apps folder add more waste.
QUOTE Thanks
nabl

 
nabl's Avatar
 
Member Since: Dec 13, 2007
Location: United States of America
Posts: 256
nabl has a spectacular aura about
Mac Specs: 2.1GHz MacBook with 4GB RAM, Mac OS X 10.6, iLife and iWork 09

nabl is offline
This is actually quite simple using System Profiler. Run this command from Terminal:
Code:
system_profiler SPApplicationsDataType > ~/Desktop/Applications.txt
This will output every single application on your computer to a file on the Desktop called Applications.txt. To refine it to just the applications in your Applications folder, try something like this:
Code:
system_profiler SPApplicationsDataType | grep "Location: /Applications" -B 7 > ~/Desktop/Applications.txt
It will output a generally nice list of applications. You could even refine that further to include other folders, such as ~/Applications. Also, you can change the path to output it wherever you like, including on your backup disk somewhere.

Throw that as a do shell script in an AppleScript, set it to run on a schedule with iCal, and you'll be good to go. Here are instructions that I gave in another thread on how to assign an application to a scheduled iCal event. Just replace making an Automator script with making an AppleScript (or even do make it in Automator with a Run Applescript action), and schedule it regularly for how often you want the file to be updated.
QUOTE Thanks
noah_swanson

 
Member Since: Jan 25, 2010
Posts: 4
noah_swanson is on a distinguished road

noah_swanson is offline
Perfect! Never thought to use System Profiler...so obvious now.

Thanks again!
QUOTE Thanks

Post Reply New Thread Subscribe


« passwd and openssl passwd | Newbie help with bash script to search and replace a filename »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
Use Automator to output a list of RSS Feeds from a List of site URLs m021478 OS X - Apps and Games 0 04-24-2008 05:40 PM
Suggestions for advanced text list editing app? m021478 OS X - Apps and Games 2 04-09-2008 01:36 PM
Application has to be transferred in a .sit Aikinai Switcher Hangout 4 10-18-2005 11:19 PM
Custom Internet Application Randomly Freezing rlecjr OS X - Development and Darwin 0 08-27-2004 10:40 AM

All times are GMT -4. The time now is 03:59 AM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?