|
|
Easier is relative
I loved this hint because I don't catch NPR's Morning Edition anymore. But going to npr.org I realized that the equivalent ".smil" file was for Monday's program (this was Thurdsay!). The most current ME file has the date as part of it, so any automation would require the current date to be substituted. I decided this would be a good time to write my first shell script, so be kind :-). This might be applicable for other NPR files or other items that are date sensitive. Here is my double-clickable "PlayMorningEdition.command" script:
Easier is relative
Update to script - it doesn't handle a single digit day (i.e. august 1st). So you'll have to add an evaluation if the day variable is 1 character, add a zero before it. Just noticed this, but haven't fixed yet myself.
Easier is relative
Actually you can simplify a little and get the 0 before the day and month by using and inlining the date command. |
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.44 seconds |
|