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


Author
Message
serge
serge
Partner Member (609 reputation)Partner Member (609 reputation)Partner Member (609 reputation)Partner Member (609 reputation)Partner Member (609 reputation)Partner Member (609 reputation)Partner Member (609 reputation)Partner Member (609 reputation)Partner Member (609 reputation)
Group: Forum Members
Posts: 7, Visits: 13
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!
Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 12K, Visits: 98K
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.

Attachments
exampleoutput.txt (227 views, 1.00 KB)
serge
serge
Partner Member (609 reputation)Partner Member (609 reputation)Partner Member (609 reputation)Partner Member (609 reputation)Partner Member (609 reputation)Partner Member (609 reputation)Partner Member (609 reputation)Partner Member (609 reputation)Partner Member (609 reputation)
Group: Forum Members
Posts: 7, Visits: 13
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.
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search