imsg
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chineseimsg Actions
imsg 操作指南
Overview
概述
Use to read and send Messages.app iMessage/SMS on macOS.
imsgRequirements: Messages.app signed in, Full Disk Access for your terminal, and Automation permission to control Messages.app for sending.
使用在macOS上读取和发送Messages.app中的iMessage/SMS消息。
imsg要求:已登录Messages.app,终端拥有全盘访问权限,并且具备控制Messages.app发送消息的自动化权限。
Inputs to collect
需要收集的输入信息
- Recipient handle (phone/email) for
send - for history/watch (from
chatId)imsg chats --limit 10 --json - and optional
textpath for sendsfile
- 执行操作时需要收件人标识(电话/邮箱)
send - 执行history/watch操作时需要(可通过
chatId获取)imsg chats --limit 10 --json - 发送消息时需要文本内容,可选附带
text文件路径file
Actions
操作命令
List chats
列出聊天列表
bash
imsg chats --limit 10 --jsonbash
imsg chats --limit 10 --jsonFetch chat history
获取聊天历史
bash
imsg history --chat-id 1 --limit 20 --attachments --jsonbash
imsg history --chat-id 1 --limit 20 --attachments --jsonWatch a chat
监控聊天
bash
imsg watch --chat-id 1 --attachmentsbash
imsg watch --chat-id 1 --attachmentsSend a message
发送消息
bash
imsg send --to "+14155551212" --text "hi" --file /path/pic.jpgbash
imsg send --to "+14155551212" --text "hi" --file /path/pic.jpgNotes
注意事项
- controls delivery.
--service imessage|sms|auto - Confirm recipient + message before sending.
- 参数用于控制消息发送渠道。
--service imessage|sms|auto - 发送前请确认收件人和消息内容。
Ideas to try
可尝试的用法
- Use to discover chat ids.
imsg chats --limit 10 --json - Watch a high-signal chat to stream incoming messages.
- 使用命令发现聊天ID。
imsg chats --limit 10 --json - 监控高优先级聊天,实时接收新消息。