|
|
a Ruby version that dynamically gets the list of Login Items to launch
I really wanted the script to automatically know what my Login Items are instead of manually making aliases in a folder for it. Based on this previous comment I was able to bang out a Ruby version (much quicker for me than modifying the AppleScript code). It retains the Growl setup but omits the capability of launching the Login Items in the background (so I could actually finish the script tonight rather than next week ;) ). Save the following code to a file and chmod +x that file in Terminal.app (or whatever shell you prefer) so it can be executed. I haven't gone all the way through to testing making it the sole Login Item the way one would ultimately want to, but I did confirm it works with the stock /usr/bin/ruby without needing any 3rd-party libraries (at least on Snow Leopard, but I believe any version of Ruby >= 1.8 should also work, because that's when REXML was included into the Ruby standard library). Caveat emptor.
|
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysNo new commentsLinks 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.12 seconds |
|