Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/parthjadhav/immat
iMessage Mac Automation Tool
https://github.com/parthjadhav/immat
automation control imessage ios iphone macos macosapp message sms
Last synced: 7 days ago
JSON representation
iMessage Mac Automation Tool
- Host: GitHub
- URL: https://github.com/parthjadhav/immat
- Owner: ParthJadhav
- Created: 2021-05-08T06:40:49.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2021-06-10T05:43:42.000Z (over 3 years ago)
- Last Synced: 2024-11-01T18:42:39.194Z (14 days ago)
- Topics: automation, control, imessage, ios, iphone, macos, macosapp, message, sms
- Language: Python
- Homepage:
- Size: 1010 KB
- Stars: 17
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# IMMAT (iMessage Mac Automation Tool)
![GitHub contributors](https://img.shields.io/github/contributors/ParthJadhav/IMMAT)
![GitHub stars](https://img.shields.io/github/stars/ParthJadhav/IMMAT)
![GitHub repo issues](https://img.shields.io/github/issues/ParthJadhav/IMMAT?label=issues)IMMAT is a tool developed to control the MacOS operating system using iMessage from any iMessage supported devices.
IMMAT is created using Python and AppleScript.
## π Prerequisites
Before you begin, ensure you have met the following requirements:
* You have installed Python3 and have it working.
* You have a MacOS machine which has used iMessage on it atleast once.
* Any iMessage supported device.
* Installed the dependencies from requirements.txt.## π¦ Using IMMAT Through Executable (Recommended)
To Use IMMAT download the file by :-
[Clicking Here !](https://drive.google.com/uc?export=download&id=1RnxwMt9TH0rgXC9NZvk-Wg2JilLhGofb)
Open Terminal and type :-
```
chmod +x (Drag the file here and press enter)
```Now you can run IMMAT by opening the file.
## π Using IMMAT Through Python
To install IMMAT, follow these steps:
Installing requirements :-
```
git clone https://github.com/ParthJadhav/IMMAT.gitcd IMMAT
pip3 install -r requirements.txt
```
For Bluetooth Functionality to Work
```
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"brew install blueutil
```Running IMMAT (Foreground) :
βοΈIt is mandatory that you run it in foreground at first run.β
```
python3 Immat.py
```Running IMMAT (Background) :-
```
cd IMMATchmod +x Immat.py
nohup python3 /path/to/Immat.py &
```
To stop the background process:-
```
pkill -f Immat.py
```## π¨ Troubleshooting
If you are encountering errors like :-
```
sqlite3.OperationalError: unable to open database file
```Then try giving full disk access to the terminal by :-
https://support.avast.com/en-in/article/Mac-full-disk-access/
Instead of avast add Terminal to full-disk access.
## π¦ Usage
IMMAT will only be running on Mac the commands would be given from iMessage on other devices.
Example -
Password - $\
Command - ts (Take Screenshot)Message the below command through iMessage to Mac.
```
$ Ts
```This will reply you with the screenshot of the Mac.
These are the available commands :-
## π» MacOS Demo
Instead of main.py enter Immat.py
## π± iPhone Demo
## π How does it work?
iMessage on MacOS saves all messages it got to **chat.db** database. and the messages are saved in messages table of that database.
Whenever a new message is received; IMMAT checks if it has the password which you have entered while running IMMAT and checks for a matching command.
If the message matches the command then the following function is executed.
All of these happens locally so there is no need to worry about the privacy and security.
## π Contact
If you want to contact me you can reach me at [email protected]
## π License
This project uses MIT License.