Thanks to all the hard work of the various iPhone hackers we can now add new wallpapers, icons and ringtones to the handset, but most of that functionality depends on having a PC or Mac to hand so that you can dock the iPhone and get tweaking. Justin Schwalbe decided that simply wasn’t good enough, and so tweaked together a way to update your homescreen wallpaper to whatever image Safari is displaying.
[youtube]http://www.youtube.com/watch?v=DDZKDFCVG1E[/youtube]
You’ll need to do a bit of prep-work first, but once you’re done you’ll have a handy little bookmarklet that, when you click, lets you use Justin’s software to change the wallpaper.
1) get sshd, curl running on your phone. (see tuaw.com for info on that)
2) put this bookmarklet in your bookmark bar (semi-optional) look familliar? it should, it is basically a hack up of #4.
3) enable DemoApp in the SpringBoard (again, see tuaw), and put this as the DemoApp file (located in DemoApp.app). (don’t forget to chmod +x it)
4) close all your safari windows but one, navigate to a website with a picture you like, run the bookmarklet, select the picture, leave that window open but go back to the app menu (the springboard)
5) run DemoApp, tada!That’s great, but what is it actually doing?
When you click on “DemoApp” it actually is launching a bash script I made. This script will scan thru the contents of a plist file to find out which page Safari currently has open (only works with jpeg’s at the moment–need to get a good binary plist parser loaded on the iPhone.. any ideas?). It then calls curl to download that file, and places it in the proper place. It finishes things off with killing off SpringBoard to make it re-read the file. Voila!
I actually used Stocks.app, mostly because I don’t have any stocks, so why have an application for it? And the text you see across the screen is actually a png that I took using screen capture, and uploaded it as “Default.png” inside the application’s .app dir.
As ever, let us know how you get on if you try this!
[via Digg]







wow – that’s really damn sweet! Great job Justin.