Numbers: set cell style
numbers_set_cell_styleStyle specific cells in Apple Numbers by setting font, color, fill, wrap, or alignment on a range. Change only chosen attributes; preview with dry_run before applying.
Instructions
Style a range ("A1:D1"): font_name, font_size, bold, italic, underline, strikethrough, font_color / fill_color as "#RRGGBB", align (left|center|right|justify|auto), valign (top|middle|bottom), wrap. Only the attributes you pass change; every other cell is verified untouched. dry_run=true previews the change on a copy without touching the file. Use for fonts, colours, fill or alignment on a few cells. For a whole table that should look designed use numbers_apply_design; for how numbers display use numbers_set_number_format.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bold | No | true/false; omit to leave as is. | |
| path | Yes | Path to the .numbers file (absolute, or starting with ~). | |
| wrap | No | true = wrap text in the cell. | |
| align | No | Horizontal: left | center | right | justify | auto. | |
| cells | Yes | A cell or range in A1 notation, e.g. "B2" or "A1:D1". | |
| sheet | No | Sheet name. Omit when the file has one sheet (iwork_read lists sheets and tables). | |
| table | No | Table name on that sheet. Omit when the sheet has one table. | |
| italic | No | true/false; omit to leave as is. | |
| valign | No | Vertical: top | middle | bottom. | |
| 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. | |
| font_name | No | Font family, e.g. "Helvetica Neue" or "Geeza Pro". | |
| font_size | No | Font size in points. | |
| underline | No | true/false; omit to leave as is. | |
| fill_color | No | Cell fill "#RRGGBB". | |
| font_color | No | Text colour "#RRGGBB". | |
| strikethrough | No | true/false; omit to leave as is. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||