Timing issue with multiple scripts in Action Group...
Posted: Wed Mar 27, 2019 3:08 pm
Hi Folks,
Sorry if this is a silly question, I'm having trouble sequencing multiple scripts in an Action Group. In my action group I have this:
- python script that sets a variable vTxtMsgBody to "hello"
- execute action group "send text message". (this is another action group that contains a python script that sends a text message using vTxtMsgBody)
However, the text message script sends the message BEFORE the variable vTxtMsgBody gets updated. I tried this:
- python script that sets a variable vTxtMsgBody to "hello"
- python script that uses time.sleep(5), adding a 5 second delay
- execute action group "send text message". (this is another action group that contains a python script that sends a text message using vTxtMsgBody)
In this case, the text message still gets sent, before the sleep script even returns.
It looks like Indigo is shelling the scripts one after another, without waiting for the prior script to return. Is this correct? If so, any ideas on how to properly organize this? Fundamentally, I need to be able to set multiple Indigo variables in a Python script and then have another script that uses the same set of Indigo variables execute, but only after the set of Indigo variables have been updated.
Any suggestions on what I'm doing wrong?
Thanks in advance!
-russg
Sorry if this is a silly question, I'm having trouble sequencing multiple scripts in an Action Group. In my action group I have this:
- python script that sets a variable vTxtMsgBody to "hello"
- execute action group "send text message". (this is another action group that contains a python script that sends a text message using vTxtMsgBody)
However, the text message script sends the message BEFORE the variable vTxtMsgBody gets updated. I tried this:
- python script that sets a variable vTxtMsgBody to "hello"
- python script that uses time.sleep(5), adding a 5 second delay
- execute action group "send text message". (this is another action group that contains a python script that sends a text message using vTxtMsgBody)
In this case, the text message still gets sent, before the sleep script even returns.
It looks like Indigo is shelling the scripts one after another, without waiting for the prior script to return. Is this correct? If so, any ideas on how to properly organize this? Fundamentally, I need to be able to set multiple Indigo variables in a Python script and then have another script that uses the same set of Indigo variables execute, but only after the set of Indigo variables have been updated.
Any suggestions on what I'm doing wrong?
Thanks in advance!
-russg