Networking | Hardware | Software | Multimedia | System | Unix&Linux | MBA

Home>>Unix&Linux>>Displaying Images on the Desktop w/ Unix

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:)


 

TOP

Windows Server Outsell
Unix Signals And C++ E

For more info

Unix Signals And C++ E
Windows Server Outsell
bash not using my .bas
Applescript: Hide Proc
help with installing p
Mozilla install from d
ssh - don't want to us
Escaping quotes in Tig
Terminal Keybindings 
JAVA help, please! 

News Archive

Displaying Images on t
Install Office from th
Terminal Problem...? 
cc1plus not executable
desktop icons.. 
at & growlnotify 
unknown terminal type 
scp arbitrary files 
What and why is a 'Dis
permissions already me

Related stories:

Install Office from the command line
Terminal Problem...?
cc1plus not executable!
desktop icons..
at & growlnotify
unknown terminal type network...
scp arbitrary files

Copyright@2004-2005 www.zzcoke.com All Right Reserved

advanced web statistics