The Shell

#code269 {background-color:#eee;padding:10px;font-family:Verdana, Monaco, Consolas, Courier;font-size:11px;}

Shell scripting is really pretty good fun. I’m nowhere near claiming to be an expert (hell, I’ve been doing it for about three weeks now), but I kind of feel like I’m getting somewhere. Here’s some stuff I’ve been messing around with, hopefully accompanied by some clear explanations that, if nothing [...]

Posted at 20:04 on November 9th 2008, tagged as , , , with one comment

Here’s One I Made Earlier

.blue {color:blue !important;}
.bluebold {color:blue !important;font-weight:bold !important;}
.green {color:green !important;}

This is hardly complicated, but it’s something that’s been bugging me. A few minutes later, tada: a script that will open the Last.fm page of the currently playing iTunes track.

tell application "iTunes"
  try
    set theArtist to artist of current track
    set theSong to name of current track
  end try
end tell
tell application "System [...]

Posted at 16:05 on November 9th 2008, tagged as , , , , with no comments yet