Although applescripts are extremely slow compared to using python approaches with xlwt/xlrd/xlutils the Applescript advantage is that formatting of the spreadsheet is retained (to the extent that Numbers.app is able to retain it).
Essentially the applescript duplicates the actions that could be done manually so the structure of the resultant updated spreadsheet should match those created by laborious manual cell-by-cell data entry. This is not the case with python tools : xlutils.copy.copy creates a fresh copy and loosing formatting information and potentially other things.
Open spreadsheet with Numbers.app
Check that the frontmost spreadsheet contains a worksheet named numbers-sheetname
To export a CSV file into PWD:
numbers-export out.csv
To import into the current spreadsheet:
numbers-import in.csv
Example:
delta:Desktop blyth$ open Example_eng.xls
delta:Desktop blyth$ numbers-
delta:Desktop blyth$ numbers-import export.csv
=== numbers-import : path /Users/blyth/Desktop/export.csv
sheetname Journal paper toprow 3
The import/export CSV use character “|” as delimiter so fields cannot include that character. There is currently no checking of that.
Why require input in proprietry undocumented binary file formats ? Why not something simple like CSV ?