Geoff Dutton wrote: > I am using appscript to automate data processing through "Igor Pro". > However, I keep running into an Apple event time out problem when running a > process in Igor. I realize the timeout duration on some programs can be set, > but I can't seem to set it through Igor's Do_Script command. I have pasted > my code here: http://python.pastebin.com/m5e45943e > > The time out occurs in the Igor_ProcessMol def. How do I lengthen the time > out duration? I have tried setting it via self.igor.activate(timeout=1200) > but that doesn't work. It seems like self.igor.Do_Script() should have a way > to set the time out.
1. Make sure you're using appscript 0.21.1 (contains a workaround for a periodic Apple event timeout bug in 10.6). 2. Add a 'timeout' attribute to each command that needs a non-standard timeout, e.g. igor.Do_Script("some command", timeout=1200) HTH has -- Control AppleScriptable applications from Python, Ruby and ObjC: http://appscript.sourceforge.net _______________________________________________ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig