apple_preview
Manage Preview app documents: open files, list open documents, and close current or all documents for macOS automation.
Instructions
Control Preview app. Actions: open, list_open, close, close_all. Note: Preview has limited AppleScript support.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | POSIX path to the file to open | |
| action | Yes | open: Open a file in Preview; list_open: List currently open documents in Preview; close: Close the front document in Preview; close_all: Close all documents in Preview | |
| confirm | No | Set to true to confirm a protected/destructive action. Without this, protected actions return a preview instead of executing. |