Follow us on...
Follow us on Twitter Follow us on Facebook
Register
Results 1 to 1 of 1
  1. #1
    gatorparrots is offline ~departed~
    Join Date
    Jul 2002
    Location
    Kansas City, MO
    Posts
    457
    Thanks
    0
    Thanked 7 Times in 7 Posts

    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 19th, 2002 at 11:26 PM.

  2. The Following User Says Thank You to gatorparrots For This Useful Post:

    jmo562003 (July 12th, 2010)

 

 

Similar Threads

  1. Replies: 7
    Last Post: May 25th, 2006, 06:18 PM
  2. [HOWTO] - Cool Keyboard/Mouse Combos
    By zootbobbalu in forum HOWTO & FAQs
    Replies: 45
    Last Post: October 8th, 2003, 06:36 AM
  3. Do not call' list blocked by court
    By bobw in forum Bob's Place
    Replies: 6
    Last Post: September 27th, 2003, 07:07 PM
  4. Replies: 3
    Last Post: April 27th, 2003, 02:26 PM
  5. Recently installed DVD drive, now how to install DVD Software
    By abernajb in forum Mac OS X System & Mac Software
    Replies: 4
    Last Post: December 19th, 2002, 06:22 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •