Posted almost 4 years ago by Philip Ingram
boy, I almost went to macVim because of this error. /me shudders.
Note: this solution appears to work for Mac’s that can’t run in Snow Leopard in full 64 bit mode. Here is my uname on my box:
$ uname -a Darwin macbook.local 10.2.0 Darwin Kernel Version 10.2.0: Tue Nov 3 10:37:10 PST 2009; root:xnu-1486.2.11~1/RELEASE_I386 i386
So here is the final error i got in the end that brought all of this together
macbook:Bundles nerb$ osascript -e 'tell app "TextMate" to reload bundles' 2010-02-11 09:14:54.925 osascript[91871:903] Error loading /Library/ScriptingAdditions/Adobe Unit Types.osax/Contents/MacOS/Adobe Unit Types: dlopen(/Library/ScriptingAdditions/Adobe Unit Types.osax/Contents/MacOS/Adobe Unit Types, 262): no suitable image found. Did find: /Library/ScriptingAdditions/Adobe Unit Types.osax/Contents/MacOS/Adobe Unit Types: no matching architecture in universal wrapper osascript: OpenScripting.framework - scripting addition "/Library/ScriptingAdditions/Adobe Unit Types.osax" declares no loadable handlers.
Well, it was another Wayne E. Seguin impromptu script that came through for me. Praise be unto him.
mkdir -p /Library/Application\ Support/TextMate/
cd /Library/Application\ Support/TextMate/
if [[ -d Bundles/.svn ]] ; then
cd Bundles && svn up
if [[ -d Bundles ]] ; then
mv Bundles Bundles.old
svn co http://svn.textmate.org/trunk/Bundles
arch -i386 osascript -e ‘tell app “TextMate” to reload bundles’
rvm 1.9.1 --symlink textmate
TM_RUBY to /Users/YOURUSERNAME/.rvm/bin/textmate
Perhaps you missed the uname line at the top and you are lucky enough to be running Snow Leopard in a native 64 bit environment, cough prick cough. Well just run this last line of the script without the "arch -i386 " bit.
macbook:Bundles $ osascript -e 'tell app "TextMate" to reload bundles'
Perhaps you’ll need a new Ruby on Rails tmbundle.
Follow the instructions to download and when you run the osascript line at the bottom, adjust it to use the ‘arch -i386’ flag as we do in the script. Again, assuming you’ve got a uname similar to mine.
Hope it helps.