imsg
使用imsg在 macOS 上读取和发送信息应用中的 iMessage/短信。
要求
- 信息应用已登录
- 终端拥有全磁盘访问权限
- 控制信息应用的自动化权限(用于发送)
常用命令
- 列出聊天:imsg chats --limit 10 --json
- 历史记录:imsg history --chat-id 1 --limit 20 --attachments --json
- 监听:imsg watch --chat-id 1 --attachments
- 发送:imsg send --to "+14155551212" --text "hi" --file /path/pic.jpg
注意事项
- --service imessage|sms|auto控制消息的发送方式。
- 发送前请确认收件人和消息内容。


微信扫一扫,打赏作者吧~
网友评论
最新评论