# Commands

You can send the following commands to MsgFiler 4 using AppleScript.

* **reload mailboxes**: Reloads mailboxes. Returns true if the mailboxes were loaded properly or false if they are not.
* **play filing sound**: Plays the filing sound. Returns true if the sound was played.
* **select message down**: Selects the message down in the message viewer. \[[1](#additional-notes)]
* **select message up**: Selects the message up in the message viewer. \[[1](#additional-notes)]
* **collapse conversation**: Collapses the conversation in the message viewer.  \[[1](#additional-notes)]
* **expand conversation**: Expands the conversation in the message viewer. \[[1](#additional-notes)]
* **update mailboxes** (mailbox list): Sends a complete list of mailboxes to display in MsgFiler 4. Used internally to generate said list. Parameter needs to be in list format. This command is to be used in conjunction with the legacy mailbox retrieval method.
* **refresh mailboxes** (list of account and mailbox error text): Sends a complete list of mailboxes to display in MsgFiler 4. Used internally to generate said list. Parameter needs to be in list format. This command is used with the new mailbox retrieval method introduced in MsgFiler 4.2.0.
* **gmail account filing mode**: Gets the account-specific Gmail filing method setting. Direct parameter is the name of the account.

## Additional Notes

1. Requires that the MsgFiler Filing Script is installed and activated.


---

# 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.msgfiler.com/applescript/commands.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.
