> For the complete documentation index, see [llms.txt](https://docs.b2ihealthcare.com/snow-owl-authoring-platform/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.b2ihealthcare.com/snow-owl-authoring-platform/browsing-and-searching/scripting/executing-scripts.md).

# Executing Scripts

Save the file and click the ![](https://content.gitbook.com/content/N7ynFOLTw3W9Zow9AaAJ/blobs/7UwE43U02ogez6vrj03u/672792670%20\(3\)%20\(4\)%20\(4\)%20\(4\)%20\(4\).jpg) *Execute Snow Owl script* button in the main toolbar to execute the script in the currently active file editor. Another way is to right-click on the text editor and select the same *Execute Snow Owl script* option from the Context Menu.

![Execute Groovy Script](https://content.gitbook.com/content/N7ynFOLTw3W9Zow9AaAJ/blobs/UKybn7dWHnlAVcvv7v4m/groovy_execute.png)

The results are displayed in the Console View.

![Goorvy Script Result in the Console View](https://content.gitbook.com/content/N7ynFOLTw3W9Zow9AaAJ/blobs/A8JYM7WDFiPyqYhz8ktK/groovy_console.png)

{% hint style="info" %}
Queries can be saved as delimiter separated value files or saved to XML with only a short script.
{% endhint %}

![Groovy Script Example for an XML File Creation](https://content.gitbook.com/content/N7ynFOLTw3W9Zow9AaAJ/blobs/TH5Bc6y4cZc1bsqgooK9/groovy_result.png)
