Got it: Copy/paste XML for a single script (as opposed to XML for all scripts). That's helpful to know.
Also, I appreciate the heads up about a potential format change of the XML. Thank you.
For some further clarification:
I was under the impression that MBS already has functionality to identify the usage of undeclared script $vars within a script, with the possible exception of those set within a Let/While function. Am I mistaken about that?
Edit:
I just found this page: Monkeybread Software - Goodies 12: Check variables
I'll read it a few times to wrap my brain around what might be possible. Thanks.
The highlighting of undeclared variables is part of the code, that colorizes the scripts. The JavaScript in the search window would have to do this again.
Thank you, @MonkeybreadSoftware. Understood -- I'm just trying to understand what features already exist, and thus perhaps would not add much value if recreated some other way.
If undeclared variables are already being called out through some other means that is working well, then I would be interested in better understanding (not just from you, but from everyone else, as well), what value would be added by adding them to the search window.
I imagine that if all scripts were being searched for undeclared vars, that could be pretty helpful, but it sounded from an earlier post that the JS would just be applied to the XML for a single script, and not all scripts.
I was basing the thought that the operation applies to just a single script, on this:
Is there an MBS function that would export ALL Scripts’ XML? That would be useful as I could write my own logic to parse for these problems.
Check out the Save as XML script step.
Otherwise you can go to the script list and use select all and copy commands to copy them to the clipboard.
1 Like
Save as XML will save every script in the project? We have hundreds.
This is a really tough problem since there would be no way to then “update” all the scripts with fixed scripts.
Not sure this is even doable other than, perhaps, for script problem identification.