image
image

Go Back   macosx.com > Mac Help Forums > HOWTO & FAQs

Reply
 
Thread Tools
  #1  
Old December 19th, 2002, 11:29 PM
~departed~
 
Join Date: Jul 2002
Location: Kansas City, MO
Posts: 457
Thanks: 0
Thanked 0 Times in 0 Posts
gatorparrots is on a distinguished road
How to list your installed applications

AppleSystemProfiler | grep Applications >> ~/installedApps.txt

It launches the GUI version of Apple System Profiler, but then it pipes the results of the "Applications" tab through a grep seach and then outputs the result to a text file in your home directory. Simple and clean. (Leave off the '>> ~/installedApps.txt' if you want it to output directly to the shell and not to a text file.)

One caveat: the above code will just find what is in your /Applications directory.

To search your drive for Cocoa apps, do this:
sudo find / -name "*.app" >> ~/CocoaApps.txt

The last approach is slower, but will find and list all applications in /Applications, whether they are Carbon or Cocoa. (AppleScript authored by pmccann at forums.macosxhints.com):
Code:
-- Configure this if necessary: exclude_dirs is just a list
-- of directory names (within starting_dir) that the script 
-- should not examine for applications. If you don't have any
-- directories that need excluding you can set exclude_dirs to {} 
-----------------------------------------
set starting_dir to (path to the startup disk as string) & "Applications:"
set exclude_dirs to {}
-----------------------------------------
on getapps(given_dir)
	global app_list, exclude_dirs
	tell application "Finder"
		if the name of folder given_dir is in exclude_dirs then
			set inside_this to {} --just empty it out
		else
			set mylist to (every file of folder given_dir whose file type is "APPL")
			repeat with filex in mylist
				set app_list to app_list & the POSIX path of (filex as alias)
			end repeat
			set inside_this to every folder of folder given_dir
		end if
	end tell
	repeat with another_dir in inside_this
		getapps(another_dir as alias)
	end repeat
end getapps
global applist, exclude_dirs
set app_list to {}
getapps(starting_dir)
return app_list

Last edited by gatorparrots; December 20th, 2002 at 12:26 AM.
Reply With Quote
Reply

Thread Tools

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 Off
Pingbacks are Off
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[HOWTO] Make the Shared directory behave as a truly shared directory. coolgrafix HOWTO & FAQs 7 May 25th, 2006 07:18 PM
[HOWTO] - Cool Keyboard/Mouse Combos zootbobbalu HOWTO & FAQs 45 October 8th, 2003 07:36 AM
Do not call' list blocked by court bobw Bob's Place 6 September 27th, 2003 08:07 PM
setting up application in X applications list 033 Unix & X11 3 April 27th, 2003 03:26 PM
Recently installed DVD drive, now how to install DVD Software abernajb Mac OS X System & Mac Software 4 December 19th, 2002 07:22 PM


All times are GMT -5. The time now is 11:14 AM.


Mac Support® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2000-2008 DigitalCrowd, Inc.