mac-automationlisted
Install: claude install-skill aiskillstore/marketplace
# Mac Automation via AppleScript
This skill enables control of macOS applications and system functions through AppleScript execution via the `osascript` command.
## Core Principle
Execute AppleScript commands using the Bash tool with `osascript`:
```bash
osascript -e 'AppleScript code here'
```
For multi-line scripts:
```bash
osascript <<'EOF'
tell application "App Name"
-- commands here
end tell
EOF
```
## Supported Applications & Functions
### 1. Mail (邮件)
- Send emails with subject, body, recipients
- Read unread emails
- Search emails
- Create drafts
### 2. Reminders (提醒事项)
- Create reminders with due dates
- List reminders by list
- Complete/delete reminders
- Create reminder lists
### 3. Calendar (日历)
- Create events with time, location, notes
- List today's/upcoming events
- Delete events
- Create calendars
### 4. Notification Center (通知中心)
- Display system notifications
- Custom title, subtitle, message
- Sound alerts
### 5. Safari
- Open URLs
- Get current page info
- Execute JavaScript
- Manage tabs and windows
### 6. Finder
- Open folders
- Get/set file info
- Move, copy, delete files
- Create folders
- Reveal files
### 7. System Controls (系统控制)
- Volume control (mute, set level)
- Brightness (via external tools)
- Open applications
- System info queries
- Sleep/restart/shutdown (with care)
### 8. Third-Party Applications
Many third-party apps support AppleScript. Common categories include development tools (iTerm2, VS Code), task management (Omn