π¦ ClawHub
send-imessage
by @dezhihe91
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 messa...
TERMINAL
clawhub install send-imessageπ About This Skill
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:
send "hello" to buddy "+18888888888"Send Chinese message:
send "δ½ ε₯½" to buddy "+18888888888"Notes
π‘ Examples
Send English message:
send "hello" to buddy "+18888888888"Send Chinese message:
send "δ½ ε₯½" to buddy "+18888888888"