7

Daily Dilbert strip

Posted in Images by Ivyleaf 134 days ago

Geeklet to display the current Dilbert comic strip on the desktop.

The first geeklet contains all the code to fetch and process the image and the second geeklet just displays the temporary image saved by the first.

Initially I was having a problem that both geeklets were refreshing simultaneously and therefore the image wouldn't always roll forward. I managed to fix this issue by setting the picture to not refresh at all, and the last line of the shell script calls an inline AppleScript to manually refresh the picture:

osascript -e 'tell application "GeekTool Helper" to refresh geeklet id "2D23E26D-9270-4723-89F7-CA63B0901524"'

I have used the same approach with the weather icon... having the image fetch script update the picture and setting no refresh on the picture itself.

Other than that, I am very new to both AppleScript and Shell scripting so if you think anything can be cleaned up, let me know.


Geeklet files to download

Comments

Log in to comment or register here.