Copying a range of cells from one sheet of one document to another sheet of another document using AppleScript
I have the following script to copy the value of cell A2 from one document to cell B4 of another document. What do I change in this script to have it copy a range of cells (be it numeric or text) of range A2:B20 from file_1 to the range of B2:C20 on file_2 instead ? Appreciate the help and expertise here. Thanks.
set file_1 to choose file of type "numbers" with prompt "Choose 1st file"
set file_2 to choose file of type "numbers" with prompt "Choose 2nd file"
tell application "Numbers"
set document_1 to open file_1
set document_2 to open file_2
set the clipboard to (value of cell "A2" of table 1 of sheet 1 of document_1) as text
delay 1
set (value of cell "B4" of table 1 of sheet 1 of document_2) to the clipboard
return {name of document_1, name of document_2} -- added this to see the names
end tell