node-imessage
Binds iMessage to NodeJS (read-only)
ATTENTION: only available to brave coders, heavy development going on.
Discuss on HN or star the project to be updated.
Install
npm install imessage --save
To use the command line tool
npm install -g imessage
Usage
Command line
Usage: imessagejs <command>
command
search Search messages with particular text
recipients Search messages with particular recipient
Search
Usage: imessagejs search "text to search" [options]
Options:
--count Just return the count
--recipient ID of the recipient
--json Print in json format
--path iMessage path to the chat.db
Recipients
Usage: imessagejs recipients ["recipient name to filter"] [options]
Options:
--count Just return the count
--json Print in json format
--path iMessage path to the chat.db
NodeJS Library
Recipients
var iMessage = ;var im = ; // Get all recipientsim // Get recipients with "nicola"im // Get recipient Idim// Get recipient and all of his messagesim
Messages
// Get all messagesim // Get messages with textim; // Get messages from recipient Idim// Get messages from recipient with specific textim
Attachments
// Get all attachmentsim // Get attachements from recipient Idim
Use raw SQL queries
var iMessage = ; var im = ;im
Ideally
var iMessage = ; var im = ;im