[Pythonmac-SIG] #! line and simple dialogs [SOLVED]
has
hengist.podd at virgin.net
Sat Oct 2 20:52:01 CEST 2004
Bob Ippolito wrote:
>It is possible to write a GUI that is a linear series of steps using
>only dialogs for input with purely Apple Events (and therefore
>possible using only appscript). I'm not sure it would be
>particularly great, but that's what AppleScripters have done for
>quite some time.
AppleScript uses OSAXen (OSA eXtensions) for displaying simple
dialogs atop a GUI application (by default, the app that called them,
but can be any other). They actually work quite well simple graphical
input/output in batch scripts, despite the OSAX system itself being a
pretty cheesy procedural, C/Pascal-only, namespace-polluting bodge to
compensate for the lack of extensibility in AppleScript, and never
replaced by something better.
Appscript doesn't support osaxen - there's few that'd be of any use
to MacPython users, so it's not really worth it. I've been wrapping
the more useful ones; there's an unfinished, untested copy posted
here:
http://freespace.virgin.net/hamish.sanderson/osax-0.1.0.tar.gz
Wouldn't be my preferred way of doing things, but maybe it'll fill a
gap for now.
BTW, checked the OS 10.3 release notes today and the 255 character
limit has finally been lifted on the 'display dialog' osax, so should
do for the OP's purposes long as backwards compatibility with OS 10.2
isn't needed.
Cheers,
has
--
http://freespace.virgin.net/hamish.sanderson/
More information about the Pythonmac-SIG
mailing list