[Pythonmac-SIG] HFS versus POSIX paths (changed from fixing the documentation)
has
hengist.podd at virgin.net
Fri Apr 21 12:06:45 CEST 2006
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 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.
HTH
has
--
http://freespace.virgin.net/hamish.sanderson/
More information about the Pythonmac-SIG
mailing list