Hey Folks,
Using Numbers 4.0.5 on macOS 10.12.3.
I have a spreadsheet I imported from an Excel worksheet, and I pasted an excerpt into a new Numbers worksheet:
<Screen Shot 2017-02-04 at 13.13.13.jpeg>
As you can see I only have one row selected.
But – this script produces very odd results:
tell application "Numbers"
tell document 1
tell active sheet
set activeTable to (the first table whose class of selection range is range)
tell activeTable
set cellValues to cells of selection range
end tell
end tell
end tell
end tell
{
cell "A2" of table 2 of sheet 1 of document id "80D97BB7-2506-4CD6-98CB-A2938C8D4F38" of application "Numbers",
cell "B2" of table 2 of sheet 1 of document id "80D97BB7-2506-4CD6-98CB-A2938C8D4F38" of application "Numbers",
cell "B2" of table 2 of sheet 1 of document id "80D97BB7-2506-4CD6-98CB-A2938C8D4F38" of application "Numbers",
cell "B2" of table 2 of sheet 1 of document id "80D97BB7-2506-4CD6-98CB-A2938C8D4F38" of application "Numbers",
cell "E2" of table 2 of sheet 1 of document id "80D97BB7-2506-4CD6-98CB-A2938C8D4F38" of application "Numbers",
cell "F2" of table 2 of sheet 1 of document id "80D97BB7-2506-4CD6-98CB-A2938C8D4F38" of application "Numbers",
cell "F2" of table 2 of sheet 1 of document id "80D97BB7-2506-4CD6-98CB-A2938C8D4F38" of application "Numbers",
cell "F2" of table 2 of sheet 1 of document id "80D97BB7-2506-4CD6-98CB-A2938C8D4F38" of application "Numbers"
}
I don't normally use Numbers, so this is extra confusing.
Does anyone know what's up with this?
So far I can't replicate the problem with a normally created Numbers workbook.
TIA.