Like so;
Code: Select all
Script Error embedded script: invalid syntaxbob
Code: Select all
Script Error embedded script: invalid syntaxBob, you didn't include your test script... So it's hard to see what is going wrong.... But....bob wrote:How do you use Python to write to the log in the same manner you would Applescript? Can you make it red?Code: Select all
Script Error embedded script: invalid syntax
See the follow up in the other thread....bob wrote:Ben,
Thanks for your reply. I have Python script that parses an xml file on my network. Sometimes it doesn't make the connection and I get a URLError. The error is written to the log but does not have "Script Error" title in the log. I want the script to write the error to the log as a Script Error. See my script and the error here;
http://www.perceptiveautomation.com/use ... =18&t=8856
Usebob wrote:... The error is written to the log but does not have "Script Error" title in the log. I want the script to write the error to the log as a Script Error.
Code: Select all
indigo.server.log("Text in log file", "Script", isError=True)