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


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

Author
Message
serge
serge
Associate Member
Associate Member (166 reputation)Associate Member (166 reputation)Associate Member (166 reputation)Associate Member (166 reputation)Associate Member (166 reputation)Associate Member (166 reputation)Associate Member (166 reputation)Associate Member (166 reputation)Associate Member (166 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
Supreme Being (578K reputation)Supreme Being (578K reputation)Supreme Being (578K reputation)Supreme Being (578K reputation)Supreme Being (578K reputation)Supreme Being (578K reputation)Supreme Being (578K reputation)Supreme Being (578K reputation)Supreme Being (578K reputation)

Group: Administrators
Posts: 9.4K, Visits: 41K
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 (4 views, 1.00 KB)
serge
serge
Associate Member
Associate Member (166 reputation)Associate Member (166 reputation)Associate Member (166 reputation)Associate Member (166 reputation)Associate Member (166 reputation)Associate Member (166 reputation)Associate Member (166 reputation)Associate Member (166 reputation)Associate Member (166 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


Reading This Topic


Login
Existing Account
Email Address:


Password:


Social Logins

Select a Forum....






Millisecond Forums


Search