Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
Auto Generated Application List
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="nabl" data-source="post: 987246" data-attributes="member: 43512"><p>This is actually quite simple using System Profiler. Run this command from Terminal:</p><p>[code]system_profiler SPApplicationsDataType > ~/Desktop/Applications.txt[/code]</p><p>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:</p><p>[code]system_profiler SPApplicationsDataType | grep "Location: /Applications" -B 7 > ~/Desktop/Applications.txt[/code]</p><p>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.</p><p></p><p>Throw that as a <span style="font-family: 'Lucida Console'">do shell script</span> in an AppleScript, set it to run on a schedule with iCal, and you'll be good to go. Here are <a href="http://www.mac-forums.com/forums/940959-post2.html" target="_blank">instructions</a> 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.</p></blockquote><p></p>
[QUOTE="nabl, post: 987246, member: 43512"] This is actually quite simple using System Profiler. Run this command from Terminal: [code]system_profiler SPApplicationsDataType > ~/Desktop/Applications.txt[/code] 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[/code] 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 [font="Lucida Console"]do shell script[/font] in an AppleScript, set it to run on a schedule with iCal, and you'll be good to go. Here are [URL="http://www.mac-forums.com/forums/940959-post2.html"]instructions[/URL] 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]
Verification
Post reply
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
Auto Generated Application List
Top