Close in Office
xlide_close_in_appClose an Office file in its parent application to release it for writing. Optionally save or discard unsaved changes, or end the holding process if necessary.
Instructions
Closes a file in the Office application the user has it open in, which frees it for a write. Only that file: the application stays, unless this server started the instance and nothing else is open in it. A copy holding unsaved work is left open and reported, unless save_changes saves it first or discard_changes closes it without saving; losing the user's work is their decision, so ask them. When the application does not answer, or the file stays locked, end_process ends the process Windows says holds the file, and every unsaved document in that process is lost with it: ask the user first. Where the user was in the file is remembered, and xlide_open_in_app puts them back there. Windows only.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | Absolute path to the Office file. | |
| end_process | No | If the application does not answer, or the file stays locked, end the process holding it. Loses unsaved work in every document open in it. Ask the user first. | |
| save_changes | No | Save unsaved changes before closing. Not for a read-only copy. | |
| discard_changes | No | Close without saving, losing unsaved changes. Ask the user first. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||