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