|
|
Simpler Script
I took your script and modified it a little to do less work. It no longer uses multiple calls to "echo" to display text, it uses a single call to "cat." Most of the variable assignments have been removed since many were only used once, and the AppleScript is cat'ed into osascript now instead of multiple "-e" arguments. There seemed to be no reason to assign the output of osascript to a variable and then echo it, so I removed that and I've redirected stderr to /dev/null so I don't get the
Simpler Script
Oops, sorry... I lost the indenting when I pasted the script into the web browser. It should still work fine, it just looks funny. |
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.09 seconds |
|