I have this code
- Code: Select all
myMessage = indigo.variables[1817154897]
cmd = """osascript<<END
tell application "Messages"
send "Please feed the Dogs" to buddy "8045551212" of (service 1 whose service type is iMessage)
end tell
END"""
def send_Message():
os.system(cmd)
send_Message()
I tried adding this to reference a variable, but I am missing something, as it is not working: send (" %s " %myMessage.value) to buddy "8045551212" of (service 1 whose service type is iMessage)
Tried many ways, but I just don't know that much about python to get unstuck...
In this instance, the variable holds the value "Please feed the Dogs"
Is what I want possible using the code for sending an iMessage ?
Many thanks - Brian