The big .js file contains >8 million lines with all of the following commands. No class information is available since the file was exported from a software.
Is there any simple way to listing/classifying view the contents and do some batch modification?
var Project = MainProg.createTask()
var Budget = Project.createDoubleVariable()
Budget.name = "Department"
Budget.value = 10000.0
Project.doubleVariables.add(Budget)
var Team = Project.createIntegerVariable()
Team.name = "Gold"
Team.value = 11
Project.integerVariables.add(seed)
var file1 = Project.createStringVariable()
file1.name = "File1"
file1.value = "C:\\WorkDir\\Task2022\\...."
Project.stringVariables.add(file1)
var resultcontainer = Project.createResultContainer()
resultcontainer.name = "Results"
var property = Project.createProperty()
property.key = "condition"
property.value = "Initial"
resultcontainer.properties.add(property)
var property_2 = Project.createProperty()
property_2.key = "task"
property_2.value = "Summer2022"
resultcontainer.properties.add(property_2)
var property_3 = Project.createProperty()
property_3.key = "TeamHours"
property_3.value = "20.0 [h]"
resultcontainer.properties.add(property_3)
.....