[Pythonmac-SIG] Launching an app and bringing it to the front

JoanCarles p Casasín joanca@typerware.com
Tue, 8 Feb 2000 12:44:33 +0100


Pieter Claerhout wrote:

>Hello,
>
>what's the easiest way to launch an app from a Python
>script and to bring it to the front?

Don't know if it's the easiest or better, but seems to work...
--------------------
import macfs, findertools

#creator should of course, the app's creator string
f = macfs.FindApplication(creator)
findertools.launch(f)
--------------------

hope this helps,


JoanCarles


:::!!!:::
joanca@typerware.com

http://www.typerware.com