# Applescript

|                               |                                                          |
| ----------------------------- | -------------------------------------------------------- |
| <p>tell / end tell</p><p></p> | - begin statement end - end statement                    |
| keystroke                     | keystroke using {command down, option down} key code 123 |

\-- name all processes tell application "System Events" to name of processes

\--Setting SettingBounds tell application "Finder" to set the bounds of the window 1 to {x,y,width,height} -- SettingBounds using System events tell application "System Events" to tell process "After Effects" set position of window 1 to {0, 50} set size of window 1 to {600, 650} 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.nosleepcreative.com/dev/archive/mac/applescript.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.
