- Open Google Chrome and log into WhatsApp Web.
- Copy the following MATLAB code into the MATLAB Command Window:
- Create a new file in a text editor and save it as send_whatsapp_message.scpt (ensure the file extension is .scpt) with the following AppleScript code: