• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Two questions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Two questions


  • Subject: Re: Two questions
  • From: bill <email@hidden>
  • Date: Mon, 08 Jul 2002 23:50:24 +0800

At 06:55 -0700 7/7/02, Jeffrey Camiel wrote:
>1. Does anybody have a simple script that lists all the applications within
a
volume to a text file? for 10.x and 9.x

Jeff,

A partial suggestion for OS X, if you are looking for applications like:

/Applications/Address Book.app
/Applications/AppleScript/Script Editor.app
/Applications/AppleScript/Script Runner.app
/Applications/Calculator.app

Try this method:

do shell script "find / | grep '.app$' > ~/Desktop/ListOfApplications"


Briefly, use shell command find to list every items in root directory
recursively, grep item ends with 3.app2, send the output to a text file
named 3ListOfApplications2 on your desktop.

Limitations:
1. not suitable for classic application.
2. some directory needs root privilege, either add sudo or ignore these
directories.

On my machine, it takes about one minute to generate the file, be patience.


bill
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Two questions
      • From: Christopher Nebel <email@hidden>
    • Re: Two questions
      • From: Philip Aker <email@hidden>
  • Prev by Date: Re: timing
  • Next by Date: RE: how to use data from choose from list
  • Previous by thread: Re: Two questions
  • Next by thread: Re: Two questions
  • Index(es):
    • Date
    • Thread