スキル一覧に戻る
SpillwaveSolutions

automating-excel

by SpillwaveSolutions

Agents, Skills and Commands for automating Keynote, Notes, Reminders, Numbers and more using AppleScript and PyXA (JXA too).

9🍴 1📅 2026年1月21日
GitHubで見るManusで実行

SKILL.md


name: automating-excel description: 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. allowed-tools:

  • Bash
  • Read
  • Write

Automating Excel (JXA-first, AppleScript discovery)

Relationship to the macOS automation skill

  • Standalone for Excel, but aligned with automating-mac-apps patterns.
  • Use automating-mac-apps for permissions, shell, and UI scripting guidance.
  • PyXA Installation: To use PyXA examples in this skill, see the installation instructions in automating-mac-apps skill (PyXA Installation section).

Core Framing

  • Excel AppleScript dictionary is AppleScript-first; use Script Editor for discovery.
  • JXA is the production language for logic and data processing.
  • Collections are specifiers; read via methods, set via assignments.
  • Handle errors from Excel operations using try/catch blocks and Application error checking.

Workflow (default)

  1. Discover dictionary terms in Script Editor (Excel).
  2. Prototype a minimal AppleScript command.
  3. Port to JXA and add defensive checks.
  4. Use bulk read/write (2D arrays) for performance.
  5. Use VBA run() when dictionary coverage is missing.

Validation Steps

  • Test with empty documents to verify error handling
  • Verify data integrity after batch operations
  • Check Excel UI responsiveness after automation runs
  • Log errors with specific Excel object paths for debugging

Examples

Basic workbook read:

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 array

Bulk write with performance toggle:

Excel.screenUpdating = false;
Excel.calculation = 'manual';
try {
  const range = worksheet.ranges['C1:D100'];
  range.value = my2DArray;
} finally {
  Excel.calculate();
  Excel.screenUpdating = true;
}

VBA escape hatch:

Excel.run('MyMacro', {arg1: 'value', arg2: 123});  // Calls VBA subroutine

When Not to Use

  • For general macOS automation without Excel involvement
  • When AppleScript alone suffices (no JXA logic needed)
  • For Excel tasks requiring complex UI interactions (use automating-mac-apps for that)
  • When cross-platform compatibility is required

What to load

  • JXA Excel basics: automating-excel/references/excel-basics.md
  • Recipes (ranges, 2D arrays, formatting): automating-excel/references/excel-recipes.md
  • Advanced patterns (performance toggles, VBA bridge): automating-excel/references/excel-advanced.md
  • Pivot table guidance: automating-excel/references/excel-pivots.md
  • Charting guidance: automating-excel/references/excel-charts.md
  • Dictionary translation table: automating-excel/references/excel-dictionary.md
  • PyXA (Python) alternative: automating-excel/references/excel-pyxa.md

スコア

総合スコア

75/100

リポジトリの品質指標に基づく評価

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

+10
説明文

100文字以上の説明がある

+10
人気

GitHub Stars 100以上

0/15
最近の活動

1ヶ月以内に更新

+10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

+5

レビュー

💬

レビュー機能は近日公開予定です