Millisecond Forums

How to copy/generate a list of all elements in a given script

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

By serge - 2/27/2019

Is there a way to copy (or save as a text file) the list of all elements used in a script, for instance as they appear on the right-hand panel (Alphabetic) of Inquisit Lab?

I'm trying to compare 2 complex scripts to identify and rename duplicate elements to use with <include>

Thanks!
By Dave - 2/27/2019

serge - Wednesday, February 27, 2019
Is there a way to copy (or save as a text file) the list of all elements used in a script, for instance as they appear on the right-hand panel (Alphabetic) of Inquisit Lab?

I'm trying to compare 2 complex scripts to identify and rename duplicate elements to use with <include>

Thanks!

You can do the following:
(1) Open the script in Inquisit Lab, then parse it (click the "Validate script" button).
(2) Click on the "Output" tab at the bottom:



There you'll find parsing result, which is a list of all the elements in the script, in the order they were parsed. The output can be selected and copied:



(3) Then you can paste the output into a text editor of your choosing, and you'll have your list of elements (example attached).



Alternatively or in addition, since Inquisit script files (*.iqx) are simple text files (not some binary format), you can use a simple diff tool (e.g. WinMerge under Windows; http://winmerge.org/ ) to compare the two (complex) scripts -- this will highlight any differences.
By serge - 2/27/2019

Dave - Wednesday, February 27, 2019
serge - Wednesday, February 27, 2019
Is there a way to copy (or save as a text file) the list of all elements used in a script, for instance as they appear on the right-hand panel (Alphabetic) of Inquisit Lab?

I'm trying to compare 2 complex scripts to identify and rename duplicate elements to use with <include>

Thanks!

You can do the following:
(1) Open the script in Inquisit Lab, then parse it (click the "Validate script" button).
(2) Click on the "Output" tab at the bottom:



There you'll find parsing result, which is a list of all the elements in the script, in the order they were parsed. The output can be selected and copied:



(3) Then you can paste the output into a text editor of your choosing, and you'll have your list of elements (example attached).



Alternatively or in addition, since Inquisit script files (*.iqx) are simple text files (not some binary format), you can use a simple diff tool (e.g. WinMerge under Windows; http://winmerge.org/ ) to compare the two (complex) scripts -- this will highlight any differences.

Thank you, Dave! The parsing option seems particularly straightforward.