[Pythonmac-SIG] appscript equivalent of launch?

Laurent Pierron Laurent.Pierron at loria.fr
Thu Jul 20 16:54:48 CEST 2006


Le 20 juil. 06, à 16:31, has a écrit :

> Kevin Walzer wrote:
>
>> import os
>>
>> os.system('open -a TextEdit.app')
>
> Still ends up sending a run event, unfortunately. The goal is to
> launch the app without it opening an empty document, as 'launch app
> "TextEdit"' does.
>

Try that :

	os.system('osascript -e \'launch application "textedit"\'')

--
Laurent PIERRON



More information about the Pythonmac-SIG mailing list