Altova XMLSpy 2025 Enterprise Edition

Enabling Scripts and Macros

Home Prev Top Next

Once a scripting project is complete and tested, you can use it in the following ways:

 

1.As the global scripting project for XMLSpy. This means that all the scripts and macros from the scripting project are available to XMLSpy.

2.At XMLSpy project level. This means that a reference to the .asprj file is saved together with the XMLSpy project. When the XMLSpy project is opened, its associated scripts and macros can be called.

To set a scripting project as global:

1.On the Tools menu, click Options.

2.Click the Scripting tab.

3.Select the Activate scripting check box and browse for the .asprj file to be used as global scripting project.

scr_enable_scripting_xmlspy

You can optionally enable the following additional script processing options:

 

Run auto-macros when XMLSpy starts

If you select this check box, any macros that were set as "Auto-macro" in the project will be triggerred automatically when XMLSpy starts.

Process events

Select this check box if your scripts bind to any application events. Clear the check box to prevent the scripts from reacting to events.

To enable a scripting project at project level:

1.Open the project.

2.On the Project menu, click Script Settings.

3.Select the Activate project scripts check box and browse for the .asprj file.

 

The Run-auto macros... check box has the same meaning as already described above.

© 2018-2024 Altova GmbH