Token导航 LogoToken导航TokenDH.com
开发敏感数据clawhub未标认证来源可访问clear审计提醒

osascript-email奥萨脚本电子邮件

Agent Skill

osascript-email 用于辅助前端页面、组件、样式和交互逻辑开发,适合在 OpenClaw 中需要维护前端项目、生成组件或检查界面实现时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

2,424

周安装

102

GitHub Stars

公开资料未说明

下载量

849
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:osascript-email(奥萨脚本电子邮件)
来源仓库:https://github.com/yumik20/osascript-email
安装命令:
openclaw skills install osascript-email
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install osascript-email

简介

使用 AppleScript 在 macOS 上通过 Mail.app 发送自动纯文本电子邮件,无需 SMTP 凭据,适用于警报和报告,而不是批量或 HTML 电子邮件。

SKILL.md

name
osascript-email
description
Send emails on macOS via AppleScript (osascript) using Mail.app — no SMTP credentials, passwords, or API keys required. Use when: sending automated emails from macOS, sending standup reports or alerts via email, emailing from a cron job or agent, or when other email tools (sendmail, himalaya, SMTP) are unavailable or unconfigured. Requires Mail.app to be installed and configured with at least one account. NOT for: bulk email sends; HTML email; email with large attachments; non-macOS environments.

osascript-email

Send email via Mail.app using AppleScript. No password or API key needed — Mail.app handles auth.

Prerequisites

  • macOS with Mail.app installed
  • At least one email account configured in Mail.app
  • Verify the sender address matches a configured Mail.app account
  • Authorization: This skill sends email silently from Mail.app. Only use with explicit user consent. Never use to send on behalf of a user without their knowledge.

Quick send (exec)

Use exec to run an inline osascript command. The script below is the canonical pattern — copy it exactly, then substitute values.

osascript << 'APPLESCRIPT'
tell application "Mail"
  set m to make new outgoing message with properties {subject:"YOUR SUBJECT", content:"YOUR BODY", visible:false}
  tell m
    make new to recipient with properties {address:"recipient@example.com"}
    make new to recipient with properties {address:"cc@example.com"}
  end tell
  send m
end tell
return "sent"
APPLESCRIPT

Escaping rules:

  • Double quotes inside subject/content must be escaped: \"
  • Backslashes must be doubled: \\
  • Newlines inside content: use `\

` (AppleScript treats literal newlines in the string as content)


Python helper (for agent scripts)

Use when sending email from a Python cron script or agent workflow. Copy the function from scripts/send_email.py — do not rewrite it.

from scripts.send_email import send_email

send_email(
    subject="Daily Report — 2026-01-01",
    body="Here is the summary...",
    to="primary@example.com",
    cc="secondary@example.com",       # optional
    sender="your-mail-app-account@icloud.com"  # must match Mail.app account
)

See scripts/send_email.py for the full implementation.


Multi-recipient

Add additional make new to recipient lines inside the tell m block:

make new to recipient with properties {address:"a@example.com"}
make new to recipient with properties {address:"b@example.com"}

Troubleshooting

SymptomLikely causeFix
osascript: Mail got an errorMail.app not open or account not configuredOpen Mail.app, check accounts
Email lands in Draftssend m not reached (script errored before)Check escape characters
execution error: Mail got an error: Invalid recipientAddress typoVerify recipient address
Email sends but empty bodyNewline escape issue in content stringUse Python helper instead
returncode != 0 with no stderrosascript permission deniedGrant Automation permission: macOS Ventura+: System Settings → Privacy & Security → Automation; older macOS: System Preferences → Security & Privacy → Automation

Limitations

  • Plain text only (no HTML, no inline images)
  • Attachments possible but require additional AppleScript — see references/attachments.md
  • Rate: Mail.app will queue and send; not suitable for bulk sends (>10 emails)
  • Sender must be a configured Mail.app account — cannot spoof arbitrary addresses

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

89.33%
按下载量换算758

安全审计

VirusTotal

可疑

ClawScan

可疑

Static analysis

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills