[Pythonmac-SIG] Passing Data: from AppleScript to argv(command line parameters)

Jack Jansen jack@oratrix.nl
Wed, 23 May 2001 21:40:46 +0200


There's currently no way to do this. Python accepts two appleevents,
open document and open app. And with open document it expects
documents (which are then added to sys.argv).

But the functionality sounds pretty useful, especially for simple
tasks. You can already more-or-less do what you want, by creating an
applet based on MiniAEFrame, but an argv-based scheme would
definitely be easier for some things.

Idea: if you design the AEUT resource (and possibly do an example
implementation based on MiniAEFrame) I'll add it to the main
interpreter for the next release.
Oh yes: you'll probably want the script to run to be the direct
object.

(BTW: You should watch out with a name like "advertising": you're message
was already half-way to the bitbucket when the "Applescript" and
"argv" in the subject struck me as funny keywords for a spam message:-)
--
Jack Jansen             | ++++ stop the execution of Mumia Abu-Jamal ++++
Jack.Jansen@oratrix.com | ++++ if you agree copy these lines to your sig ++++
www.oratrix.nl/~jack    | see http://www.xs4all.nl/~tank/spg-l/sigaction.htm