Millisecond Forums

Malfunctioning Batch Script

https://forums.millisecond.com/Topic19390.aspx

By unicornx - 7/12/2016

Hello,

I am trying to run a <batch> script, and for some reason, it does not work. I've tried to validate the two files of the <batch> script, and they work fine, but when I put them together, it doesn't work in Inquisit 4 (but it works in Inquisit 5). Is there a feature of Inquisit 4 that I've missed that Inquisit 5 has, and if so, is there a way around this issue? 

Here are the scripts: 

The combined script: 
<batch condition01>
/subjects= (1 of 2)
/groupassignment= random
/ file= "Batch UVA Final.iqx"
</batch>

<batch condition02>
/subjects= (2 of 2)
/groupassignment= random
/ file= "Batch VCU.iqx"
</batch>


Batch UVA (same thing for Batch VCU.iqx): 
<batch>
/ file = "UVA group assignment.iqx"
/ file = "ManipCheck UVA.iqx"
/ file = "Disgust Ratings UVA.iqx"
/ file = "donatemoney.iqx"
/ file = "Demographic Survey UVA Final (2).iqx"
</batch>

Thanks! 
By Dave - 7/12/2016

If I'm understanding your setup correctly, you are trying to run a <batch> element that _in turn_ runs another <batch>-script that runs the "actual" scripts, right?

If so, that won't work. The solution would be to get rid of "Batch UVA Final.iqx" and "Batch VCU.iqx", and instead list the scripts direclty in the "main" <batch> elements. I.e., you'd have a single <batch>-script containing just

// scripts for the UVA condition
<batch condition01>
/subjects= (1 of 2)
/groupassignment= random
/ file = "UVA group assignment.iqx"
/ file = "ManipCheck UVA.iqx"
/ file = "Disgust Ratings UVA.iqx"
/ file = "donatemoney.iqx"
/ file = "Demographic Survey UVA Final (2).iqx"
</batch>

// scripts for the VCU condition
<batch condition02>
/subjects= (2 of 2)
/groupassignment= random
/ file= "1st script formerly contained in Batch VCU.iqx'"
/ file = "2nd script formerly contained in Batch VCU.iqx"
....
</batch>