[PYTHONMAC-SIG] Q: How To Tell The Finder To Launch An App With A Doc?

Bill Bedford billpy@mail.demon.net
Mon, 14 Oct 1996 17:52:05 +0000

At 1:19 am +0000 18/09/96, Just van Rossum wrote:
~Although this is not a Python specific question, I hope you don't mind
~asking here. It's still Python related.
~In my BBEdit extension in which I can send Python code to the interpreter I
~would like to give a prompt when the slave script is not running, asking
~the user to locate it and then: Launch The Interpreter With The Script.
~I am told I have to send an AppleEvent to the Finder to do this, but I've
~crawled through most of the stuff on my Inside Mac CD and I Can't Bleedin'
~Find It. Does anyone know what event to send? Or what else to do? I think
~Jack would also like to know, so we can also make a convenient call for
~this in Python / aetools.py. No More Connection Invalid Errors. Please?

I've just spent the whole weekend trying to do this and at last Eureka!!!!!

You can use

	talker = Finder(FINDERSIG)

but you have to remember that FINDERSIG="MACS"

Then everything works

Duh   - Talk about a blinding glimpse of the bleedin' obvious

 Bill Bedford                                  Designer of Photo-Etches

               owner Brit_Rail-L  ---  british railways historical list


PYTHONMAC-SIG  - SIG on Python for the Apple Macintosh

send messages to: pythonmac-sig@python.org
administrivia to: pythonmac-sig-request@python.org