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

Advertising adv.files@robbstucky.com
Thu, 24 May 2001 12:59:16 -0400


>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).

Which python is preconfigured to accept 2 AppleEvents (open document / 
open app)?
     Interpreter, 
     IDE, 
     or SimpleScripts saved as Applets.


When you say "open document" do you mean opening the *.py file,
or can I.......

     tell application "pythonUnspecified"
          open document FSSpec
     end tell


Thanks,
Lane

ps
Stop the discrimination against and stereotyping of Advertisers!
Many of us decry the inappropriate and intrusive methods of
the new "internet economy." We dislike unsolicited eMail/Spam as much as 
you do.

-------------------------------------------------------------------
You can litter your internet presence with as many 
flashing, bouncing, colorful cruft items 
as your bandwith will carry. 

But if you never really had anything to say,
and spent all your time working on those gee-whiz items;
you still have nothing to say,
and your audience will know it.
"Spend your time on the Message; not the media."

Encourage clear, concise communication in plain and simple language.
"Use as little as you need to get your point across."

Any idiot can fill the space with cruft,
and they usually do so.