# Imsg

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

- Skill: `tomevault-io/imsg-8` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add tomevault-io/imsg-8`
- Raw SKILL.md: https://api.skillmd.com/api/skills/tomevault-io/imsg-8/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: tomevault-io (https://skillmd.com/u/tomevault-io)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/tomevault-io/imsg-8

---


# iMessage

Send and manage iMessages via osascript on macOS.

## Send a Message

```bash
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

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

## Send to Group Chat

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

---
> Converted and distributed by [TomeVault](https://tomevault.io/claim/kody-w) — claim your Tome and manage your conversions.
<!-- tomevault:4.0:skill_md:2026-04-13 -->

