# Using Apple Script with the Guest OS

You can use AppleScript to open various files and websites in the guest OS applications. You may need this when creating automated workflows.

To make the explanation more vivid, let's assume that you need to open some .txt file in Windows Notepad using AppleScript (in AppleScript Editor). The syntax of this command would be:

```
tell application "Notepad"
open "/Users/username/filename.txt"
end tell
```

As an example of opening a website in the guest OS application, let's assume that you need to open "`www.parallels.com`" in Microsoft Edge. The syntax of this command would be:

```
tell application "Microsoft Edge"
open "//www.parallels.com"
end tell
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.parallels.com/landing/pdfm-ug/parallels-desktop-for-mac-26-users-guide/advanced-topics/working-with-virtual-machines/using-apple-script-with-the-guest-os.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
