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
Post a Comment