Can Apple Script find/replace for conditions in formulas within cells?
I asked ChatGPT (who is writing the apple script for me) how to even phrase this question and here's what Chat suggested:
I'm using AppleScript to replace part of a COUNTIFS formula in a Numbers table. The original formula refers to columns in another table by name (e.g., Data Table::$Author).
When I manually enter or paste this formula in the Numbers UI, the app highlights each column reference as a color-coded token — confirming that it has resolved them to actual columns.
However, when I assign the exact same formula string using AppleScript (via set formula or set value), Numbers either:
- throws error -10003, or
- accepts the formula as text but fails to interpret the column references correctly.
This suggests that AppleScript-injected formulas are not being parsed through the same semantic resolution engine as user-entered formulas.
Is there a way to ensure that AppleScript-submitted formulas are parsed with full table/column binding, like user-entered ones?
iMac 27″ 5K, macOS 13.7