From: Richard Fairbanks Date: 2010-04-03T08:49:47+09:00 Subject: Re: “arch -i386 ruby” not loading into 32-bit mode in 10.6.3 > Not clear how you ran it, but it sounds as if you're still running in > 64-bit mode. I’ve been entering it manually into Terminal and also running it as an AppleScript: do shell script "ruby '/Applications/ Scripting/Ruby/Tests/test.rb'" The results are the same in either case (as in initial post), only the OSAX calls fail. AFAICT, it is still in 64-bit mode. Early on I ran the following with the noted result: # To determine whether Ruby is running in 32bit or 64bit ['foo'].pack('p').size #=> 8 on 64bit, 4 on 32bit #=> I got “8” > To test the script, I changed the hashbang to '#!/usr/bin/env -i386 > ruby', I tried that as an initial attempt and it didn’t work either. > chmodded it to make it executable, I didn’t know that was necessary as other scripts ran fine, only the OSAX calls failed. Please offer some wisdom as to how to set it as such, if it is necessary! > and ran it as ./test.rb, and it ran fine in 32-bit. I would love to be able to get the same results; at least I now know it is possible in 10.6.3! Any other advice would be greatly appreciated! (I love AppleScript. Really. I do. ;-) ) > FWIW, I have a TODO on embedding Standard Additions terminology in the > OSAX module (I've already done this for py-appscript) so that it will > work on 64-bit as well. I still need to figure out Ruby 1.9's text > encoding support before I do a new release though. If you would like (yet another) beta-tester, just let me know! ;-) Thanks for your incredible efforts! Appscript is quite a blessing! Richard Fairbanks -- Posted via http://www.ruby-forum.com/.