I couldn’t find a blog post or comprehensive tutorial anywhere, but after a great deal of trial and error, I’ve managed to get Safari 3 and Safari 4 beta to run on my Macbook Pro at the same time. Most insisted you have to download WebKit… but you don’t.
It’s much easier than that, once you figure it all out… here’s how to do it!
I scoured the Internet, searching for a way to do this… I ended up referring to more websites than I can remember, mostly from the Safari 3 beta period. A couple of approaches out there required downloading a copy of WebKit, but I couldn’t get this to work effectively. I took a lot from Michel Fortin and his post of the subject. Although his solution didn’t get me all the way there, a lot of Google searching and web board posts did.
Basically, the trouble is that Apple stores the common WebKit framework for the entire Mac. Even if you copy Safari 3 somewhere to your machine, it will still use the newer WebKit layout engine. The trick, then, is to provide the older framework to the older Safari instance. What’s nice about this approach is you’re just “restoring” Safari 3 and giving it the older versions of the Frameworks it relied on… no extra WebKit stuff to worry about.
Here’s how to do it:
- Install the Safari 4 beta. Don’t worry; Safari 4 saves a copy of your Safari 3 install to an archive.
- Go to
.Safari4PreviewArchive.tar.gzsomewhere, like your Desktop.
Applicationsdirectory contains your Safari application; the
Systemdirectory contains the older frameworks, like WebKit.
- Right-click the Safari application and select Show Contents.
- Copy the
PrivateFrameworksdirectories from the
System/Librarydirectory of the expanded archive to the
Contentsdirectory of the Safari application.
Contentsdirectory in a simple text editor.
- Add the following XML snippet beneath the parent <dict> element:
That should do it! You should now be able to run Safari 3 side-by-side with Safari 4. If anyone knows a good file share site, I’ll be happy to post a ZIP of my version. Hope this helps!
UPDATE: I’ve uploaded my Safari 3 standalone here.
Disclaimer: This is the result of obvious tinkering. I may have torn the fabric of space-time somewhere, and you could make it worse. Considering this possibility, I can’t imagine being held responsible if something merely goes wrong with your computer… use at your own risk.