Loading...
Loading...
Automates Microsoft Excel on macOS via JXA with AppleScript dictionary discovery. Use when asked to "automate Excel spreadsheets", "JXA Excel scripting", "Excel macOS automation", or "bulk Excel data operations". Focuses on workbooks, worksheets, ranges, 2D arrays, performance toggles, and VBA escape hatches.
npx skill4agent add spillwavesolutions/automating-mac-apps-plugin automating-excelautomating-mac-appsautomating-mac-appsautomating-mac-appsrun()const Excel = Application('Microsoft Excel');
const workbook = Excel.workbooks[0];
const worksheet = workbook.worksheets['Sheet1'];
const range = worksheet.ranges['A1:B10'];
const data = range.value(); // Returns 2D arrayExcel.screenUpdating = false;
Excel.calculation = 'manual';
try {
const range = worksheet.ranges['C1:D100'];
range.value = my2DArray;
} finally {
Excel.calculate();
Excel.screenUpdating = true;
}Excel.run('MyMacro', {arg1: 'value', arg2: 123}); // Calls VBA subroutineautomating-mac-appsautomating-excel/references/excel-basics.mdautomating-excel/references/excel-recipes.mdautomating-excel/references/excel-advanced.mdautomating-excel/references/excel-pivots.mdautomating-excel/references/excel-charts.mdautomating-excel/references/excel-dictionary.mdautomating-excel/references/excel-pyxa.md