I found this script that lets me send a text from my mac to whomever. While it seems to work, it does not alert me on my phone, it does send the text, but I would need to manually check my ohone and I would see a text, with no notification popping up on the phone.
Is this because it is sent from my own icloud account on the Mac using iMessages?
Is there a way to force an alert? Is there a better way? I could not understand how to configure pushover, unsure how to register each iPhone as a device, I do not want to have to have pushover running in the background on each iDevice just to get a notification....
I like this method, as I want to send the dog sitter messages, and do not want to use a system that requires prior authentication ahead of time...
While I am not versed at all in python, this would appear to be an applescript, but it actually works as a python script..
I did not see how to configure the Messages plugin to send messages.....Anyone have a better way of sending simple texts? I want something simple like the code below.
Thanks!
:
- Code: Select all
import os
cmd = """osascript<<END
tell application "Messages"
send "!! Upper Gate has been opened !! " to buddy "804-255-6514;804-921-4744" of (service 1 whose service type is iMessage)
end tell
END"""
def send_Message():
os.system(cmd)
send_Message()