360 Secure SkillHub
360 安全技能中心

send-imessage

该 Skill 在 macOS 上通过 AppleScript 调用「信息」App,向指定电话号码发送文本消息,支持中英文及表情等内容;使用时需将美国号码补全为 +1 前缀,并要求信息 App 已登录 iMessage,必要时还需授予辅助功能权限。

dezhihe91
dezhihe91
热度 70.94
最近更新 2026-05-17 13:53:45
分类:自动化依赖:代码执行应用场景:自动化脚本

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add send-imessage
Metadata
name
imessage
description
Send iMessages via macOS Messages app using AppleScript. Use when user wants to send a text message/SMS to a phone number. Supports Chinese and English messages. Phone numbers should include +1 prefix for US numbers.

iMessage Skill

Send iMessages using macOS Messages app via AppleScript.

Usage

When user asks to send a message to a phone number:

  1. Extract the phone number and message from user's request
  2. Format phone number with +1 prefix for US numbers (e.g., 8888888888 -> +18888888888)
  3. Use AppleScript to send the message

AppleScript Command

osascript << 'EOF'
tell application "Messages"
    activate
    send "MESSAGE_TEXT" to buddy "+1PHONE_NUMBER"
end tell
EOF

Examples

Send English message:

  • User: "send message to 8888888888, say hello"
  • Command: send "hello" to buddy "+18888888888"

Send Chinese message:

  • User: "send to 8888888888 你好"
  • Command: send "你好" to buddy "+18888888888"

Notes

  • The Messages app must be logged into iMessage/FaceTime
  • If AppleScript fails, macOS may need Accessibility permissions in System Settings > Privacy & Security > Accessibility
  • Works with any text content (English, Chinese, emoji, etc.)