live_select
Select a paragraph in an open Word document by address or find phrase, returning its text and address.
Instructions
Select a paragraph in the app's window, by address (at) or by a locate find phrase, and return its text and address.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| at | No | Paragraph address, e.g. `p142#a7b2a7b2`. | |
| doc | Yes | Path to the document, or the file name of one open in a live app. | |
| mode | No | `select` (default) selects the paragraph; `cursor` only puts the cursor at its start, so typing or Delete cannot replace it. | |
| front | No | Bring the app's window to the front (default true); the reply's `front` says whether it came. | |
| engine | No | Always the live engine; may be left out. | |
| find_phrase | No | A phrase that occurs once in the document (`\r` for a paragraph mark), as `locate` gives it. | |
| match_level | No | How loosely `find_phrase` matches. `default` (the default) ignores case, accents and punctuation; `loose` symbols too. Either tries the levels from verbatim on and takes the first that matches, so one verbatim paragraph beats looser ones. `exact` is `locate`'s rule: case ignored, nothing else, no retry. Two meanings of exact: the request's `exact` allows a case difference, the reply's does not. The reply's `match_level` (`exact` character for character, `case`, `default`, `loose`) names the level that matched, with `matched_text` when it is not `exact`. | |
| paragraphs_after | No | Select the paragraph this many after the one named. | |
| find_phrase_across | No | `locate`'s `find_phrase_across`, for a phrase spanning a mark. |