Numbers: set borders
numbers_set_bordersSet cell borders on a range in .numbers files: choose sides (outline, inner), width, color, and line style. Preview changes with a dry run before editing.
Instructions
Cell borders on a range: sides = all | outline | inner | top | right | bottom | left; width in points; color "#RRGGBB"; style = solid | dashes | dots | none. dry_run=true previews the change on a copy without touching the file. Use for lines around or inside a range. For fills and fonts use numbers_set_cell_style.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path to the .numbers file (absolute, or starting with ~). | |
| cells | Yes | A cell or range in A1 notation, e.g. "B2" or "A1:D1". | |
| color | No | Line colour "#RRGGBB". | #000000 |
| sheet | No | Sheet name. Omit when the file has one sheet (iwork_read lists sheets and tables). | |
| sides | No | all | outline | inner | top | right | bottom | left. | all |
| style | No | solid | dashes | dots | none (none removes the border). | solid |
| table | No | Table name on that sheet. Omit when the sheet has one table. | |
| width | No | Line width in points. | |
| dry_run | No | true = make the change on a throwaway copy, run every check, and return what would change; the file itself is not touched. Use it before broad or risky edits and show the user. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||