html - syntax error near unexpected token `<' from Applescript to Python -



html - syntax error near unexpected token `<' from Applescript to Python -

i using next command pass string python applescript

string mytext contains html body of email starting <...

applescript

display dialog (do shell script "/users/mymac/documents/'microsoft user data'/'outlook script menu items'/ test.py" & mytext)

python

#!/usr/bin/env python import sys import string def main(): print sys.argv[1:] if __name__ == "__main__": main()

how can rectify error?

you don't want pass html argument python script. instead, like:

display dialog (do shell script "/users/mymac/documents/'microsoft user data'/'outlook script menu items'/ test.py < webpage.html") print sys.stdin.read()

python html runtime applescript

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

intellij idea - Update external libraries with intelij and java -

javascript - send data from a new window to previous window in php -