Re: [Ohrrpgce] SVN: teeemcee/4281 Add extremely messy Mac OSX implementation of spawn_and_wait. Which isn'

2011-05-06 Thread James Paige
On Fri, May 06, 2011 at 01:37:54PM +1200, Ralph Versteegen wrote:
 On 6 May 2011 06:38, James Paige b...@hamsterrepublic.com wrote:
  On Thu, May 05, 2011 at 07:41:51AM -0700, subvers...@hamsterrepublic.com 
  wrote:
  teeemcee
  2011-05-05 07:41:51 -0700 (Thu, 05 May 2011)
  567
  Add extremely messy Mac OSX implementation of spawn_and_wait. Which isn't 
  quite working.
 
  If you want to display something in a console, you should use Terminal,
  there's no other option aside from packaging your own terminal emulator.
 
 Actually, I just realised that OSX comes with xterm as well. If I
 can't get Terminal to behave, I can switch to xterm as last-resort.

But that would require starting the X11 server which probably isn't 
usually running (although I guess it is always available post 10.3?)

  If you want to get Terminal to run something, you should write an 
  AppleScript
  to send commands to Terminal. It's not a commandline program, there's no 
  other
  way to communicate with it. To run an AppleScript, we run osascript
  from the commandline. To do that, you use SHELL. As far as I can tell, this
  is the proper way to do things.
  ---
  U   wip/bundle-apps.sh
  U   wip/common.bas
  U   wip/distrib-mac.sh
  A   wip/mac/Terminal_wrapper.sh
 
  Wow. I have heard the horror stories about AppleScript
 
 Hmm, really? I guess the COBOL-style english syntax which always
 surprises with its sentence structure has been annoying so far. I
 think the most confusing thing is all the implied stuff (eg. running a
 script in Terminal seems to open a new new tab in a new window, and
 binds the tab variable in your script, or at least that's how I
 understand what's going on)
 
 I don't see why AppleScript even exists though. Apple have added
 bridges so that you can invoke commands on applications from Python,
 Ruby, and Obj-C, probably because everyone would rather use a sane
 language :) I would use the Obj-C bridge, but it is 10.5+ only, and in
 theory we support 10.4.
 
Hopefully this stable release will get enough testing that we can 
confirm whether we actually do support 10.4 :)

---
James
___
Ohrrpgce mailing list
ohrrpgce@lists.motherhamster.org
http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org


Re: [Ohrrpgce] SVN: teeemcee/4281 Add extremely messy Mac OSX implementation of spawn_and_wait. Which isn'

2011-05-05 Thread Kizul Emeraldfire
On Thu, May 5, 2011 at 09:41, subvers...@hamsterrepublic.com wrote:

 teeemcee
 2011-05-05 07:41:51 -0700 (Thu, 05 May 2011)
 567
 Add extremely messy Mac OSX implementation of spawn_and_wait. Which isn't
 quite working.

 If you want to display something in a console, you should use Terminal,
 there's no other option aside from packaging your own terminal emulator.
 If you want to get Terminal to run something, you should write an
 AppleScript
 to send commands to Terminal. It's not a commandline program, there's no
 other
 way to communicate with it. To run an AppleScript, we run osascript
 from the commandline. To do that, you use SHELL. As far as I can tell, this
 is the proper way to do things.
 ---


Wait a second — am I misinterpreting something, or are you saying that the
O.H.R.RPG.C.E. will now run on a Macintosh? o.O


 U   wip/bundle-apps.sh
 U   wip/common.bas
 U   wip/distrib-mac.sh
 A   wip/mac/Terminal_wrapper.sh

___
Ohrrpgce mailing list
ohrrpgce@lists.motherhamster.org
http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org