Last active
November 26, 2020 18:55
-
-
Save Koze/1c91cd8821f7642e9a20 to your computer and use it in GitHub Desktop.
Get cell value of Excel with AppleScript JavaScript.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// AppleScript JavaScript | |
// get application | |
app = Application('Microsoft Excel'); | |
// get worksheet by name | |
worksheet = app.worksheets['Sheet1']; | |
// get row | |
row = worksheet.rows[1]; | |
// get cell | |
cell = row.columns[0]; | |
// get value | |
value = cell.value(); | |
// log | |
console.log(value); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment