Imsg

Send and receive iMessages using AppleScript/osascript on macOS. Use when this capability is needed.

tomevault-io Updated

File contents

iMessage

Send and manage iMessages via osascript on macOS.

Send a Message

osascript -e '
  tell application "Messages"
    set targetService to 1st account whose service type = iMessage
    set targetBuddy to participant "+1234567890" of targetService
    send "Hello from openrappter!" to targetBuddy
  end tell
'

List Recent Chats

osascript -e '
  tell application "Messages"
    get name of every chat
  end tell
'

Send to Group Chat

osascript -e '
  tell application "Messages"
    set targetChat to chat "Group Name"
    send "Hello group!" to targetChat
  end tell
'

Converted and distributed by TomeVault — claim your Tome and manage your conversions.

tomevault-io/skills-registry/tree/main/kody-w--openrappter--imsg commit 07d6e99ac9

Frequently asked questions

npx skillmds@latest add tomevault-io/imsg-8