Change the Image in the Tile Game Widget

Amongst the widgets that come with Mac OS X is the Tile Game. You shift around the tiles to reveal an picture of a tiger. If you play the Tile Game often, you might find the tiger image a bit boring.

Luckily, changing the image is easy. Start by finding an image in iPhoto or the Finder to replace it. To avoid stretching, go for an image that is roughly square. Now click on the image and hold. While holding down the mouse button, press F12 to load up Dashboard. Now simply drag and drop your image onto the Tile Game.

Tile Game Widget
Annoyingly, the image will change back to the tiger if you close the widget. Permanently changing the image is a bit more complicated. It essentially involves replacing an image file hidden within the widget file. If you are familiar with delving into package files, this is quite straightforward. The image you want to replace is called game.png. However, if you aren't used to doing things like this, the easiest way is using an AppleScript.

The great thing about AppleScript is that this can be achieved with a few lines of fairly legible code.

Tile Game Widget
For the lazy people, you can just download a clickable application I made. When you open this, you will get a dialog asking you to choose a new image.

Alternatively, the more adventurous can download the AppleScript to see how it works. Paste the script into Script Editor (in Applications/AppleScript) and click Run. If you can think of any improvements or you notice any mistakes, let me know.