Displaying Images on the Desktop w/ Unix |
Mith36 04-24-2006, 12:17 AM Hello, I just bought a new Macbook pro and I'm trying to set up the desktop the way I want it. It's almost perfect, but I have two issues.
They both involve unix coding, geektool, and tips found on this site.
My first problem is that my modified script to display itunes info on my desktop with geektool is spamming my console.log window with a message whenever itunes isn't playing a song. Also, it opens up itunes whenever it isn't open, and it's fairly annoying. I am completely new to unix, but I have some basic programming experience, so you can speak technically if need be. If anyone could help me fix this script so it doesn't spam my console window with errors/open iTunes I'd appreciate it. Here it is:
#!/bin/sh
if ps x | grep iTunes | grep -q -v grep; then
osascript -e 'tell application "iTunes"
set a to current track
if current stream title is not missing value then
set b to current stream title
else
set b to player position & "/" & duration of a & " (" & time of a & ")" & "\r\n" & album of a & "\n" & artist of a & "\r\n" & genre of a
end if
name of a & "\n" & b
end tell' | iconv -f utf-8 -t ucs-2-internal
fi
My second problem is from the April 11th tip which display the album art for the current song in itunes. I had it working until I rebooted and now geektool doesn't display any images I try to load into it. What I ask is if there is any way to remedy this through geektool (the image is updating, it is just not displaying), or if I can do this without geektool? If you need more info, please ask, I'm dying to get this resolved.
Thanks for any input:)
|
|
|
|
|