AppleScript Numbers: Formatting cells for currency - with options?
Environment: Mojave, Numbers 6.1, Automator 2.9, Both Numbers and Automator are set via System Preferences > Security & Privacy > Accessibility
I know I can format a cell for currency with:
set the format of myCell to currency
What I want to know, and haven't been able to discover yet, is how to add the options of:
- "Thousands Separator"
- "Accounting Style"
Or, perhaps alternatively, how to specify a custom format such as:
Name: MyAccounting
Type: Number
If the rules below aren't met: -.#
Rule 1: If greather than or equal to 0: $#,###0.00
Rule 2: If less than 0: ($#,###0.00)
Again, I've searched the web but was unable to find any examples of how to define and use a custom format in AppleScript.
The only thing I've seen is where I have to make sure I have one cell explicitly formatted the way I want and then do something (I didn't track all the details yet) to copy-style / paste-style, but that just seems a bit hack-ish. I'm hoping to find a cleaner solution.
MacBook Air 13", macOS 10.14