Get Row Count with AppleScript in Numbers 2013
Some context: Upgraded from 10.8 and Numbers 09 to 10.9 and Numbers 2013
My script has broken. It was this:
on rowCountOfTable(sheetName, tableName) local sheetName, tableName, restry
tell application "Numbers" tell document 1 tell sheet sheetName tell table tableName set res to row count end tell
end tell
end tell
end tell
return res on error eMsg number eNum error "Can't rowCountOfTable: " & eMsg number eNum end try
end rowCountOfTable
It's now been recompiled and is this:
tell «class NmSh» sheetName
tell «class NmTb» tableName
set res to row count
end tell
endtell
AppleScript now doesn't understand row so have changed this to «class NmRw» (Guessed that bit).
Doesn't matter what I do, I can't get the Row Count of a numbers table any more....
Any ideas?
MacBook Pro with Retina display, OS X Mountain Lion (10.8.3)