[Pythonmac-SIG] Apple event time out with appscript
Geoff Dutton
geoff.dutton at noaa.gov
Wed Dec 23 01:01:39 CET 2009
On Tue, Dec 22, 2009 at 3:22 PM, has <hengist.podd at virgin.net> wrote:
> 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 at python.org
> http://mail.python.org/mailman/listinfo/pythonmac-sig
>
Thanks has! I was using the current version of appscript, however, I tried
using the timeout parameter BEFORE the igor.Do_Script command. I realize,
now, that timeout is an optional parameter and has to follow the Do_Script
command.
Thanks,
Geoff
--
NOAA Earth System Research Laboratory
Global Monitoring Division
325 Broadway, R/GMD1
Boulder, CO 80305
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pythonmac-sig/attachments/20091222/19922831/attachment.htm>
More information about the Pythonmac-SIG
mailing list