How to set the format of range in Numbers by JXA
How to set the format of range in JXA like the following AppleScript code?
tell application "Numbers"
activate
tell document 1
tell active sheet
tell table 1
set the format of range "A2:B2" to currency
end tell
end tell
end tell
end tell
I can't find the documentation related to enumeration in JXA. The format property is enumeration.
table.ranges["A2:B2"].format = "currency"
This code will trigger error (invalid format value).
MacBook Pro 13", macOS 10.14