Skip to content

Instantly share code, notes, and snippets.

@Koze
Last active November 26, 2020 18:55
Show Gist options
  • Save Koze/1c91cd8821f7642e9a20 to your computer and use it in GitHub Desktop.
Save Koze/1c91cd8821f7642e9a20 to your computer and use it in GitHub Desktop.
Get cell value of Excel with AppleScript JavaScript.
// 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