13th January, 2003
I've put an experimental feature on my site today. Inspired by KungTunes, an AppleScript Studio application [amazing technology if a little slow] and decided to build the same functionality using only the terminal - I figured it would be lighter on my machine. So, here it is, now you can see what I'm hearing in iTunes just below the logo.
I made it with osascript [a command line program to execute applescripts], bash, curl and crontab - and of course php to finally print it on the webpage. Here's what the shell script [remember to chmod 755 it] looks like [the updated script checks for an active network interface]:
I apologize for the formatting, the pre-tag doesn't wrap the lines so I can't use that. Anyway, it does require some unix skills but I will gladly post more detailed instructions if someone is interested. The above code is then executed every 2 minutes [might need adjustment] by crontab. Then I can simply include the uploaded file with php on this site. Pretty neat.