So to shuffle their order in the plist, you have to write down which UID goes with which geeklet. If you try to fix this, you can, but you run into the fact that GeekTool keeps track of its geeklets by means of hexadecimal UIDs instead of the names that you already gave your geeklets when you created them. This can ruin a carefully-crafted desktop. For instance, it often reshuffles the order of which geeklets get loaded first. It could use improvement in certain areas. ![]() But if you are a Geek, it couldn't really much get easier to use. And most other things don't make a lot of sense then. If you don't know what a shell script is, or how to write one, or are totally unfamiliar with things that live in /usr/bin, you won't be able to do much besides put images on your desktop. It's called GeekTool for a reason you have to already have some geekery ability to make it do much of interest. As an aside, utf-8 will display perfectly inside Apple's Terminal application.Fantastic app. If you know you have tracks with special characters in them, try (shown on two lines with a continuation character): osascript /path/to/scripts/iTunesName.scpt | \ iconv -f utf-8 -t ucs-2-internalThis did the trick! Characters with umlauts, accents, and so on all displayed properly, both in the xterm and in GeekTool! It goes without saying that iconv's application is not limited to iTunes - you can use it anytime you need to display utf-8 inside an xterm. However, the program iconv, which comes with OS X, will do the trick. For these tracks, the special characters would come up garbled! I tried typing the above command into an xterm, and the same garbled characters came up.Īfter much research, I found out that for some reason the xterm program (and GeekTool) doesn't process UTF-8, the unicode format returned by AppleScript, by default. It worked very well, except for tracks with international characters in them. Then inside GeekTool, I set my menu-bar-sized window to run the following shell command every 10 seconds: osascript /path/to/scripts/iTunesName.scptWhere, of course, you would replace /path/to/scripts with the location where you saved iTunesName.scpt. I moved the window on top of the menu bar, selected the "Always on top" option, and voila! I had a setup that would always display text atop the menu bar - seamlessly and transparently, without looking like a window at all! Then I just needed a simple AppleScript that would get the name of the song currently playing: tell application "iTunes" set foo1 to name of current track set foo2 to player position set foo3 to duration of current track set foo4 to foo1
0 Comments
Leave a Reply. |