How to run Safari 4 beta and Safari 3 on the same mac

Apple dropped the first public beta release of Safari 4 today, and installing it overwrites the old version of Safari as well as the system Webkit frameworks. This means it’s not possible to run the current Safari 3 release and the beta on the same system. That is, not possible without some fiddling.

Here’s a quick how-to get both Safari 3 and 4 beta running on the same system. You will need to use the terminal for part of this, and we will download an older copy of Webkit, which is Apple’s development builds of Safari.

(It’s a bit confusing, but there are Webkit frameworks, which Safari uses to render web pages, and a Webkit application, which is what Apple uses to test development versions of the Webkit frameworks.)

I am not responsible if this blows up your computer, causes your pants to spontaneously fall to your ankles causing you to flash your junk to the world, provokes fire to shoot out of your fingertips, etc.. Caveat nerd!

  1. Download and install the Safari 4 beta. You’ll need to reboot after the install because of the system framework changes.
  2. After rebooting, rename the new Safari.app in your Applications folder to Safari4.app.
  3. Download the Webkit build from 11/22/2008.

    Safari 3.2.1 was released on 11/24/2008 so I’m guessing this build is very close to that version.

  4. Mount the Webkit disk image and copy the Webkit.app application to your desktop.
  5. Rename Webkit.app to Safari3.app and move it to your Applications folder. In your Applications folder you should now have Safari3.app and Safari4.app.

    The Safari 4 installer backs up the previous version as an invisible file located at /Library/Application Support/Apple/.Safari4PreviewArchive.tar.gz. We need the original Safari.app bundle as the old version of Webkit we downloaded will not work with the new Safari 4 bundle.

  6. Launch the terminal and change directories:

    cd "/Library/Application Support/Apple/"

  7. Expand the backed up archive: tar -zxvf .Safari4PreviewArchive.tar.gz. This creates a few new folders in the current directory: Applications, System, and usr.
  8. You can now copy the old Safari.app which is now available the the newly created Applications folder to the top-level /Applications folder. You can either use the terminal (running the command cp -R "/Library/Application Support/Apple/Applications/Safari.app" /Applications/) or by navigating to Library » Application Support » Apple » Applications in the Finder and copying the Safari application bundle that way.

After all of this, you should have Safari.app, Safari3.app, and Safari4.app in your top-level Applications folder. To run the Safari 4 beta launch Safari4.app, and to run the original Safari 3 launch Safari3.app. You may be able to run Safari.app as well (I was able to launch it and it identifies itself as Safari 3.2.1) but I wouldn’t recommend this as it uses the system webkit frameworks, which were replaced when Safari 4 was installed.

Comments

1 | Mike D. said on February 24, 2009 4:24 PM

I think simply copying your old version of Safari and naming it something like "Safari 3" before you run the Safari 4 installer works as well.

Post a reply to this comment
2 | Neil replies: (February 24, 2009 9:32 PM)

@mike - I'm fairly certain this doesn't work, as the old Safari uses the system frameworks, which were upgraded when you installed the beta.

Post a reply to this comment
3 | Mike D. said on February 24, 2009 9:39 PM

Hmmm, a guy in my office did it and said he was running both. Maybe he just thinks he's running both.

Post a reply to this comment
4 | Vasi said on February 25, 2009 5:48 AM

Neil, I think I've done you one better! Since WebKitLauncher is open-source, it's not hard to modify it to use a Safari.app contained inside Whatever.app/Contents/Resources. This lets you install Safari 4 entirely standalone rather than using Apple's installation package and stomping all over your system. I put up instructions awhile ago, and just updated it for the public beta.

There's also a tiny patch that lets the standalone Safari 4 look for preferences in an auxiliary SafariBeta.plist, as well as the standard com.apple.Safari.plist. This lets you disable broken input managers in Safari 4, but still use them in Safari 3, for example.

(I also have some info on the WebKit wiki from back in the Safari 3 days...I should probably update that.)

Post a reply to this comment
5 | Matthew Spence said on February 25, 2009 6:03 AM

This isn't working for me
The webkit build is using the latest renderer too!

Post a reply to this comment
6 | Clint said on March 2, 2009 3:57 AM

You don't need to download WebKit... the stored archive contains Safari.

Check out my blog post on the subject. This is really easy to do!

Is there a way to automate the process?

Post a reply to this comment
7 | Justin said on March 7, 2009 3:21 PM

Apple maintains Safari 3.2 downloads in the Safari Dev Center: http://developer.apple.com/safari/

Post a reply to this comment
8 | JamesH said on March 11, 2009 10:13 PM

Thanks Neil, it worked for me. I needed to run the older version of Safari in order to access just 1 website for uni. The damn thing won't let you login unless you are using a specific browser even though it probably doesn't need too.

Post a reply to this comment
9 | Vasi said on March 13, 2009 12:06 PM

@Justin: If you download and install Safari 3.2, it will just overwrite Safari 4, it doesn't let you install both at once.

@Jamesh: If you enabled the "Develop menu" in Safari in the Advanced preferences, you can change your browser's User Agent, which is how it identifies itself to servers.

Post a reply to this comment
10 | Steffen Schuler said on April 30, 2009 6:30 AM

I renamed my Safari4 version and tried to reinstall the latest 3.2.1 version in parallel... but the installer complains about an allready installed newer version :(

Post a reply to this comment

Post a comment

Remember Me?

Comments Preview:

Comments:

(Textile text-formatting is enabled - HTML will be stripped out):


ISSN 1499-7894
Recent Posts
SEARCH
Contact Archives Web Love Writing Photos FAQs Home