AppleScript
by @ivangdavila
Write and run safe AppleScript automation on macOS with dictionary discovery, robust quoting, and deterministic read-first workflows.
clawhub install applescriptπ About This Skill
name: AppleScript slug: applescript version: 1.0.0 homepage: https://clawic.com/skills/applescript description: Write and run safe AppleScript automation on macOS with dictionary discovery, robust quoting, and deterministic read-first workflows. changelog: Initial release with safety-first AppleScript execution rules and reusable automation patterns. metadata: {"clawdbot":{"emoji":"A","requires":{"bins":["osascript"]},"os":["darwin"],"configPaths":["~/applescript/"]}}
Setup
On first use, follow setup.md to configure activation and safety preferences.
Setup review is read-only.
Any local file creation or modification requires explicit user confirmation.
When to Use
User needs AppleScript automation on macOS for app control, data extraction, or scripted UI actions.
Agent handles script design, safe execution with osascript, output parsing, and troubleshooting.
Requirements
osascript available.Architecture
Memory lives in ~/applescript/. See memory-template.md for structure.
~/applescript/
βββ memory.md # Preferences, safe defaults, and last working patterns
βββ snippets.md # Reusable script snippets
βββ failures.md # Error signatures and known fixes
βββ app-notes.md # Per-app dictionary and behavior notes
Quick Reference
Use these files only when the current request needs deeper detail.
| Topic | File |
|-------|------|
| Setup behavior and onboarding | setup.md |
| Memory structure | memory-template.md |
| App dictionary workflow | app-dictionary-workflow.md |
| Script design patterns | script-patterns.md |
| Destructive-operation guardrails | safety-checklist.md |
| Debug and recovery steps | troubleshooting.md |
Data Storage
All local skill data stays in ~/applescript/.
Before creating or changing local files, explain the write and ask for confirmation.
Core Rules
1. Choose Operation Scope Before Writing Any Script
2. Discover App Vocabulary Before Automation
app-dictionary-workflow.md before guessing object names.3. Escape Dynamic Input Deterministically
script-patterns.md for every variable.4. Keep Scripts Bounded and Observable
5. Read Before Write, Verify After Write
6. Require Two-Step Confirmation for Destructive Actions
safety-checklist.md before delete, bulk edit, or irreversible app actions.7. Fail Loudly With Actionable Recovery
troubleshooting.md to provide next-step fixes instead of generic retries.Common Traps
Security & Privacy
Data that stays local:
~/applescript/.Data that may leave your machine:
This skill does NOT:
Related Skills
Install withclawhub install if user confirms:
macos - macOS command and system operation patterns.automate - General automation workflow design and reliability strategy.bash - Shell scripting helpers for wrapping and testing commands.notes - Knowledge capture and structured note workflows.files - Safe file read and write workflows with clear boundaries.Feedback
clawhub star applescriptclawhub syncβ‘ When to Use
βοΈ Configuration
On first use, follow setup.md to configure activation and safety preferences.
Setup review is read-only.
Any local file creation or modification requires explicit user confirmation.