|
|
Controlling iTunes from the Terminal
I found that issuing 'itunes vol up' or 'vol down' would cause the script to barf when it hit 'if [ $2 -gt 0 ]; then', since that expression is testing for an integer. My fix, nasty as all get out probably, was to rewrite the case for vol thusly:
Controlling iTunes from the Terminal
All you need to do is make this change to the offending line (line 80, the way I saved it:)
The bash manpage will tell you the $((...)) operator forces arithmetic expansion, which eliminates the comparison between a string and an integer.
Controlling iTunes from the Terminal
the following makes more sense to me, logically:
Controlling iTunes from the Terminal (last post was ERROR)
last entry was an error on my part....i meant to suggest the following:
|
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.09 seconds |
|