New advertisers: 50% off your first month with code FIRSTMONTHSee slots

Scripted access to Apple Mail on macOS for reading, searching, sending, drafting, and managing messages.

skills.sh installs
1.4K
last updated
Aug 21, 2026
View on GitHub

What it does

  • Covers accounts and mailboxes, reading and searching mail, composing and sending, and archiving, deleting, or flagging read state
  • Includes 15 bash scripts (such as get-emails.sh, search-emails.sh, send-email.sh, and create-reply-draft.sh) that wrap AppleScript calls
  • Returns records delimited by <<>> for fields and ||| for records, with errors prefixed by ERROR:
  • Requires macOS with at least one configured Mail account and grants automation permissions on first run

Install

$ npx -y skills add rbouschery/marketplace --skill apple-mail -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Apple Mail Skill

This skill provides commands to interact with Apple Mail on macOS via AppleScript.

Available Scripts

All scripts are in the ../../scripts/ directory (relative to this file). Execute them via bash from the plugin root.

Account & Mailbox Management

ScriptPurposeArguments
list-accounts.shList all email accountsnone
list-mailboxes.shList mailboxes/folders[account] (optional)
get-unread-count.shGet unread email count[account] [mailbox] (optional)

Reading Emails

ScriptPurposeArguments
get-emails.shGet recent emails[account] [mailbox] [limit] [include_content] [unread_only]
get-email-by-id.shGet specific email by ID<id> [account] [mailbox] [include_content]
search-emails.shSearch emails<query> [account] [mailbox] [limit]

Sending & Composing

Details

Repository
github.com/rbouschery/marketplace
Categories
Email & Messaging, Productivity & Notes
First seen
Jun 3, 2026

Similar to Apple Mail

More Email & Messaging