|
|
running generatelinks.sh
So I would need to create the folder LaunchAgents if it doesn't exist and then put a .plist file in that directory with
as the only text? Do I need to have a special name for this file and is there anything I need to do to have launchd start checking it? (i.e. restart the service or log out/ log in)
Thanks!---
running generatelinks.sh
the file gotta look s/th like this:
of course you should adapt the path to the script AND the username. you can make this plist with launchd editor (its on vt, me thinkin) or with the plist-editor (its on your system).
the you tell osx to add it to launchd-services:
again adapt paths. if you now add s/th to /Applications/ you'll notice the find-process in top.
but this way, if you remove apps, they aren't removed from your list. you gotta add s/th like "rm ~/Apps/*.app" to generatelinks.sh for this. then everytime you s/th to /Applications/ the complete list of links is rebuild.
this could be a problem with apps writing in their app-bundle though, as the find-command takes its time...
regards, n.
running generatelinks.sh
Thanks! Works great. I changed the code of the original script a bit to be more conducive to a background task:
This will verify if the symlink exists first, otherwise when it tries to overwrite it generates an error. It will also output the names of the links it creates to the system log, rather than to stdout, which running within launchd isn't really visible. This doesn't cover the problem with apps removed, but simply doing an rm ~/Apps/*.app periodically should fix this.--- |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.39 seconds |
|