On Apr 21, 2006, at 3:06, has wrote: > Daniel Lord wrote: > >> I am writing an app combining excel and python/appscript to fetch >> quotes from the web and value stock portfolios . >> But I give up on using appscript with Excel--some things just >> don't work because I think the terminology is seriously warped if >> no broken. Applescriptworks but appscript doesn't. > > Please send examples of where breakage occurs so I can figure out why.
I'll get around to this in a little while--I kind of shelved that project after I got tired of using hacks to bring Excel 'to heel' > >> I instead build a text Applescript from strings and use popen2 to >> invoke osascript like this example which reads in the stock >> symbols from a named range in an excel spreadsheet: > > The osax module provides a runscript() function that's easier to > use if you're just wanting to pass in parameters. (It's a simple > wrapper around Standard Additions' 'run script' command.) > > Or I can supply a rough version of osawrapper, which is a high- > level wrapper around CarbonX.OSA; gives you much more power/ > flexibility when using AS from Python. Just ask. Sure. Maybe I'll see if I can improve on it given you said it was rough. I need to learn a lot more about OSA, AE, etc. first though. Daniel _______________________________________________ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig