Last active
May 31, 2020 11:21
-
-
Save tomer-yoskovich/32fb2866d184de758a94a8db459f8d6e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function whatsAppClickEnter() { | |
osascript -e 'activate application "WhatsApp"' -e 'tell application "System Events" to key code 36' | |
} | |
function sendWhatsappMessage() { | |
open -a WhatsApp https://wa.me/"$1"\?text\="$2" | |
whatsAppClickEnter | |
sleep 0.2 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment