El gran archivo .js contiene >8 millones de líneas con todos los siguientes comandos. No hay información de clase disponible ya que el archivo se exportó desde un software.
¿Hay alguna forma sencilla de listar/clasificar ver los contenidos y hacer alguna modificación por lotes?
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) .....