How to schedule iMessages on Mac
First, open Terminal on your Mac, then follow these steps to copy and paste the following command lines:
Send iMessage by Shell
| 1 | file="$HOME/Documents/sendiMessage.sh" | 
You will see a file opened by the default TextEdit application that displays:
| 1 | #/bin/zsh | 
Please note that you should replace TEXT with the text you want to send in the Contacts app, and replace NAME with the name.
Donβt forget to save the file.
Crontab on Mac
| 1 | sudo touch /etc/crontab | 
You should run the above line, as com.vix.cron checks whether /etc/crontab exists on macOS.
Enter your Macβs password.
Schedule the shell with Crontab
| 1 | 00 10 25 3 * zsh ~/Documents/sendiMessage.sh | 
As the Crontab β Quick Reference shows:
| 1 | 00 10 * * * command to be executed | 
This shell means that your Mac will send an iMessage at 10:00 on March 25th.
Then modify it to your desired time.
| 1 | crontab -e | 
In the following steps, you are using vim, which I find to be the hardest part.
- Press i, you will see--INSERT--in the bottom left corner ofTerminal.
- Paste 00 10 25 3 * zsh ~/Documents/sendiMessage.sh
- Press shift + :, then enterwq, and pressenter
Check Crontab
crontab -l
You can see 00 10 25 3 * zsh ~/Documents/sendiMessage.sh if everything is correct.
Translated by gpt-3.5-turbo