| 1 | === Abstract === |
| 2 | |
| 3 | After installing the [http://www.apple.com/safari/ Safari 3 Public Beta], the original Safari 2 application and WebKit frameworks get archived. This page describes how to extract them in order to use Safari 2 for testing purposes. |
| 4 | |
| 5 | === Setup === |
| 6 | |
| 7 | 1. Open a Terminal window. |
| 8 | 1. Create a directory to save the Safari 2 application and WebKit frameworks. [[BR]] {{{$ mkdir ~/Safari2}}} |
| 9 | 1. Change directories to the directory created in Step 2. [[BR]] {{{$ cd ~/Safari2}}} |
| 10 | 1. Extract the Safari 2 archive. [[BR]] {{{$ tar xzvf "/Library/Application Support/Apple/.SafariBetaArchive.tar.gz"}}} |
| 11 | 1. Create a shell script (in {{{~/bin/Safari2}}}) to launch Safari 2. |
| 12 | |
| 13 | {{{ |
| 14 | #!/bin/sh |
| 15 | export DYLD_FRAMEWORK_PATH=$HOME/Safari2/System/Library/Frameworks:$HOME/Safari2/System/Library/Frameworks/WebKit.framework/Frameworks |
| 16 | export WEBKIT_UNSET_DYLD_FRAMEWORK_PATH=YES |
| 17 | exec $HOME/Safari2/Applications/Safari.app/Contents/MacOS/Safari |
| 18 | }}} |
| 19 | |
| 20 | === Running === |
| 21 | |
| 22 | To run Safari 2, simply run the shell script: |
| 23 | {{{ |
| 24 | $ ~/bin/Safari2 |
| 25 | }}} |