This is what worked for me on MAC OS 10.6.8 with Bitcoin-Qt 0.8.1-beta. I'm combining and editing the Pygmy scriptPygmy script and Nick ODells answer, there were a few typos.
Also note, I opened the application with right-click >> "Show Package Contents" and then edited the files with the finder, and TextWrangler. No Terminal required!
Create new directory in
Bitcoin-Qt.app/Contents/Resources
and name itdata
Navigate up a level and then open the MacOS folder
In that folder, create a new file called
start.sh
open that new file in a text editor and write:
#! /bin/sh dir1=$(cd "$(dirname "$0")"; pwd) dir=
echo $dir1 | sed 's/"/\\"/g' | tr -d '\n'
data="$dir/../Resources/data" "$dir"/Bitcoin-Qt -datadir="$data" note that the last line contains the name of the only other file in the MacOS folder (Bitcoin-Qt). That's important! Because that is the program that will be executed a the end of the script you just wrote. Also, that fourth line has to link to the 'data' folder we created in step #1Navigate back up a level to
Bitcoin-Qt.app/Contents/
and open the file calledInfo.plist
Find the lines that look like this:
CFBundleExecutable Bitcoin-Qt
Change it to:
<key>CFBundleExecutable</key>
<string>start.sh</string>