Archive for the ‘safari’ tag
I cannot commit to a web browser. I like Firefox because I think it provides options (via extensions) and the awesome bar is, in fact, awesome. Safari however provides better platform aesthetic and WebKit is a faster rendering engine.
But besides that, I noticed recently that Firefox feels a little “cramped” after using Safari 4 beta. And this is the reason why:
I’m amazed at what 24 pixels can do.
I’ve recently been doing some work on WebKit and I want to run the latest nightly builds of Safari/WebKit so I’m no longer plagued by a bug I patched. I don’t want to have to manually download the most recent nightly build and place it in my Applications folder, I want it done for me.
According to the WebKit FAQ, there’s software to do this for you, but it didn’t work for me when I downloaded it (I don’t think the symlink to the latest build works, which is what it relied on). So, I wrote my own cron script to do it.
The script is written in Ruby and I have my cronjob set up like such:
30 21 * * * ~/Library/Shell/webkit-download.rb
Basic operation of the script:
- Grab the contents of nightly.webkit.org
- Find the path to the latest DMG
- Download and mount the DMG
- Move the old /Applications/WebKit.app to the trash and date-stamp it
- Copy the latest WebKit.app from the DMG and then umount
If you’re interested, you can get the script here:
webkit-download.rb (~1.4 KB)