Earlier this year I showed you a script to show count downs as Skype mood message.
Today we were talking at local.ch (almost a Mac shop now) about the MacBook Pro CPU temperature (too high). So now some of us are putting the temperature into the Skype mood message.
First you need to download SpeedIt. Make sure you get the version for the correct operating system release.
Then instead of the script in the original article, use this:
#!/usr/bin/env ruby
temp=`/usr/sbin/sysctl kern.cpu_temp`.split(':')[1].strip
msg="MacBook Pro temperature: " + temp + "ºC"
cmdline = "osascript " +
"-e 'tell application \"Skype\"' " +
"-e 'send command \"SET PROFILE MOOD_TEXT #{msg}\" script name \"Temperature\"' " +
"-e 'end tell'"
`#{cmdline}`
There is a special symbol for degrees which will only get passed correctly to Skype if you save that script in the MacRoman encoding.