How To Make A Range In Numbers (iwork) Using Jxa
I'm using JXA for automating a process using Numbers app. What I need is to select a range of cells to apply width, but JXA doesn't allow me to get them. According to apple documen
Solution 1:
This AppleScript:
tell application "Numbers"
tell table1of sheet 1of document 1set selection rangetorange "A2:A20"
end tell
end tell
is actually setting the table's selection range to the table's range named "A2:A20".
Here is the equivalent JavaScript:
var Numbers = Application("Numbers")
var table = Numbers.documents[0].sheets[0].tables[0]
table.selectionRange = table.ranges["A2:A20"]
Post a Comment for "How To Make A Range In Numbers (iwork) Using Jxa"