SkillsReviewed · SpillwaveSolutions

Automating Messages

Automating Messages is an assistant skill for developers automating macOS Messages, with the catch that reading history needs broad disk access and attachments depend on interface control. It documents JavaScript for Automation, SQLite history queries and scheduled monitoring; compatibility and delivery reliability are not established by execution evidence.

Researched 16 Nov 2026

In short.

Automating Messages is an assistant skill for developers building macOS messaging automations, with the catch that history access requires Full Disk Access and attachment sending depends on the active interface. Its most concrete guidance covers selecting an iMessage or SMS service, resolving a recipient by phone number or email, and sending through a Buddy object. Additional references cover SQLite history access and launchd monitoring. The examples have no supplied execution results, and the polling and history examples need further engineering before dependable use.

Researched and written by an AI model and checked by a second AI model. How it works

Coverage includes all supplied contents of plugins/automating-mac-apps-plugin/skills/automating-messages: SKILL.md and references/control-plane.md, references/database-forensics.md, references/monitoring-daemons.md and references/ui-scripting-attachments.md. The repository-root LICENSE is included as the related notice outside that folder. The broader plugin, companion skills, external helper implementations and Apple documentation are excluded. Message delivery, attachments, database queries, monitoring, installation and version compatibility are untested.

The overview

Identity

The resource is the automating-messages skill folder in SpillwaveSolutions/automating-mac-apps-plugin. It contains SKILL.md and four supporting references: control-plane.md, database-forensics.md, monitoring-daemons.md and ui-scripting-attachments.md. It gives an assistant instructions and code examples for controlling the Mac Messages application.

The original source location is [https://github.com/SpillwaveSolutions/automating-mac-apps-plugin/tree/main/plugins/automating-mac-apps-plugin/skills/automating-messages]. The broader plugin and the companion automating-mac-apps skill are outside this folder.

Assessment

The strongest material is the specific recipient-resolution and sending pattern: select a messaging service, find a Buddy by phone number or email, then call the application-level send method. The references also explain likely failure points, including clipboard state, interface focus and message bodies stored outside the text column.

This is useful implementation guidance for someone comfortable debugging local scripts. Claims of reliable sending are source claims: there are no supplied execution results establishing delivery, attachment handling or compatibility with a particular macOS release.

Users

The closest fit is a Mac developer building personal messaging scripts, local history analysis or a small monitoring bot. Beginners can follow the overall approach, but troubleshooting requires JavaScript, shell commands, SQL and macOS permission settings.

The skill explicitly excludes cross-platform messaging, bulk messaging and business SMS automation. It also rules out history reading where Full Disk Access is unavailable or prohibited.

Capabilities

The instructions cover one-to-one iMessage or SMS sends, recipient lookup by handle, targeting existing group conversations, bringing Messages forward and sending attachments through clipboard paste and keyboard events.

For history, the references describe SQLite queries, timestamp conversion and external decoding of archived message bodies. Monitoring guidance sketches a bot that polls for newer database rows, dispatches actions and remembers its last processed identifier. These are documented patterns rather than demonstrated end-to-end features.

Using it

Requirements

The examples require macOS, Messages and an available iMessage or SMS service. The skill declares Bash, Read and Write tools for its assistant host, but names no supported assistant version or installation system.

Scripted control requires Automation permissions. Interface and attachment steps additionally call for Accessibility access and control of System Events. History queries require Full Disk Access for the executing host, a broad permission extending beyond Messages. The SQL examples use sqlite3 with JSON output, and the polling shell example also uses jq. Archived message bodies may require a separate helper; compatible versions are unspecified.

Mechanism

JavaScript for Automation, abbreviated JXA, controls applications through Apple Events. The sending pattern selects a service by serviceType, resolves its Buddy by handle, and passes that object to Messages.send. The reference presents this as a workaround for recipient coercion and routing problems.

Attachments use the macOS clipboard and System Events to paste into the active conversation and press Enter. History access reads ~/Library/Messages/chat.db with SQL. The documented timestamp conversion divides nanoseconds by one billion and adds 978307200 seconds to translate the 2001 epoch to Unix time. Monitoring uses launchd scheduling and a saved message-row cursor.

Setup

Keep SKILL.md together with its references directory so the linked implementation details remain available. The folder provides no package-install command or complete assistant integration procedure. It points to the separate automating-mac-apps skill for shared permission setup and script invocation.

The documented preparation is to configure the permissions needed for the chosen operation, identify the transport and recipient handle, and add error logging. Optional monitoring requires a LaunchAgent configuration pointing to the script and a polling interval. The reference offers a ten-second interval as an example, without performance evidence.

Example

For a hypothetical one-to-one update, the source selects the iMessage service, resolves the example handle +15551234567 to a Buddy, and calls Messages.send('Message content', { to: buddy }). Its defensive helper checks for a missing service or Buddy and throws an error before attempting the send.

This illustrates recipient targeting, not successful delivery. No recipient receipt is supplied. For an attachment, the separate example activates Messages, selects the conversation, places a file on the clipboard, pastes it and presses Enter; correct conversation and input focus remain essential.

Assessment & evidence

Limitations

The documents describe JXA history access inconsistently: SKILL.md calls it effectively unavailable on modern macOS, while the references describe slow or redacted access. They consistently steer history work toward SQL, but establish no macOS compatibility matrix. Group creation through recipient arrays is described as unreliable, and attachment handling depends on interface focus and clipboard state.

The history examples read message.text even though the database reference says modern messages may store bodies in attributedBody. Those queries therefore cannot establish a complete text export. The suggested external exporter's path and JSON invocation are not independently substantiated here.

Static inspection also identifies unfinished monitoring details: the polling SQL uses unqualified rowid in a join, and the shell excerpt prints results and advances its cursor without implementing action dispatch or retry handling. Runtime error behavior is unknown.

Reasoning

The documented separation of sending, interface interaction and database reading helps explain the resource's fit. A one-to-one text automation has fewer moving parts than an attachment workflow or history-reading bot. Phone-number or email targeting also avoids dependence on mutable contact names.

The main trade-off is broader access and greater engineering effort as the task expands. History adds Full Disk Access and decoding work; monitoring adds scheduling, persistent state and failure recovery. This supports using the skill as an implementation starting point, while leaving dependable unattended operation unestablished.

Alternatives

For business SMS, SKILL.md points to Twilio or similar messaging APIs. It supplies no feature, cost or operational comparison, so their relative suitability remains unassessed.

The companion automating-mac-apps skill is suggested for shared setup, and imessage-exporter is suggested for message-body extraction. These serve supporting roles; their contents, compatibility and installation requirements are outside the supplied folder.

Evidence

The source evidence consists of the complete five-file skill folder and the repository-root LICENSE. It includes explanatory text and JavaScript, SQL and shell examples. No execution logs, delivery receipts, benchmarks or independent compatibility results are supplied.

A revision-pinned entry point is [https://raw.githubusercontent.com/SpillwaveSolutions/automating-mac-apps-plugin/5f37bd4ecb1746fc86f3d618e8aa81fc6a61c486/plugins/automating-mac-apps-plugin/skills/automating-messages/SKILL.md]. Statements about reliability and macOS behavior remain documentation claims; the code observations above come from reading the examples.

Access & freshness

Costs

The MIT licence grants permission to use the software and documentation free of charge. No operating-cost measurements or service prices are supplied. Whether messaging charges, assistant usage fees or optional helper costs apply is unknown, so a total running cost cannot be established.

Rights

The repository-root MIT licence names Richard Hightower as the 2024 copyright holder. It permits use, modification, distribution, sublicensing and sale, provided the copyright and permission notice accompany copies or substantial portions. The software is supplied without warranty.

That software licence does not establish permission to access or redistribute someone's message contents. The licences of suggested external tools, including imessage-exporter, are not supplied.

Freshness

The files are pinned to source revision 5f37bd4ecb1746fc86f3d618e8aa81fc6a61c486, captured at 2026-11-16T20:33:02.043Z. That timestamp records the source snapshot, not the last modification date or current compatibility.

No release number, supported macOS version range or maintenance timeline is established. The database reference explicitly anticipates schema changes between macOS releases. The licence's 2024 copyright year does not establish when the skill was last updated.

Actions

Begin with a single text message to a consenting recipient. Confirm the intended service and handle resolve correctly, record errors and independently confirm receipt before expanding the workflow. For attachments, verify the active conversation and input focus, and account for clipboard restoration.

If history access is necessary, assess the broad Full Disk Access grant, keep database operations read-only and check how archived bodies will be decoded. Before adopting monitoring, qualify message.rowid explicitly, implement action dispatch and recovery around cursor updates, and verify helper commands and macOS compatibility. These steps are recommendations; no scripts were executed.

Evidence for this report

LICENSEnotice · checked 2026-11-16