
Messages app plugin
-
petematheson
- Posts: 847
- Joined: Sun Sep 14, 2014 9:51 am
- Location: Southampton, UK
Re: Messages app plugin
It's from messages 

Re: Messages app plugin
I can't get my Messages to put up that message no matter what I try. I even tried giving it a handler with an infinite loop and that hung Messages but no Wait message appeared.
Then I googled and found this, which is people having a similar problem with the Speak Events handler: http://apple.stackexchange.com/question ... o-yosemite
Does yours do the same thing if you change Messages to use the Speak Events applescript handler?
Then I googled and found this, which is people having a similar problem with the Speak Events handler: http://apple.stackexchange.com/question ... o-yosemite
Does yours do the same thing if you change Messages to use the Speak Events applescript handler?
Re: Messages app plugin
i'm not sure I even have this setup properly. In my 'test device' for the plugin, i have it set to send using iMessage, and send/receive to myself (from the list of all contacts or whatever that is). I just want to send notifications to myself.gazally wrote:Seeker, are you sure you don't have a Mark as Read action hiding in a trigger somewhere? I notice I omitted a debugLog message in that action, which I'll remedy, but that's the only place in the code where message status gets sent to Read.
Pete, I haven't encountered a Wait prompt. Is it coming from Messages or Indigo?
If I check 'send and receive messages from all senders', i get this:
Action Group messages plugin test
Messages Error sendMessage was given empty message, handle or service. Message cannot be sent.
what's the best setup to simply send a message to my own account? I guess the concept is to set up a device for every person?
Re: Messages app plugin
Both ways can work. You can set up one device per person if that makes your Indigo logic easier or you can use one device for everybody with "all senders" if you prefer. One way you are choosing who to respond to when you create the devices, and the other way if there's anyone you don't want Indigo to respond to then you have to put conditions in your triggers to handle that.
If you use "all senders" then you have to configure the Send Message action to choose who to send the message to or you'll get that error message you saw. One of the options there is to send back to the last person a message was received from.
If you use "all senders" then you have to configure the Send Message action to choose who to send the message to or you'll get that error message you saw. One of the options there is to send back to the last person a message was received from.
-
petematheson
- Posts: 847
- Joined: Sun Sep 14, 2014 9:51 am
- Location: Southampton, UK
Re: Messages app plugin
Strange - after a restart and also setting messages to none, restarting, then setting the script back - all seems ok!
Re: Messages app plugin
Hi,
I'm getting an error message in my log when I receive a message. I have a trigger that runs when the status is set to New, but when it tries to execute the read message function.
Messages Error receiveMessage called without message, handle or service name
But there isn't any way to specify which message, handle or device to read a message from. Is that what the error is?
Thanks,
Pete
I'm getting an error message in my log when I receive a message. I have a trigger that runs when the status is set to New, but when it tries to execute the read message function.
Messages Error receiveMessage called without message, handle or service name
But there isn't any way to specify which message, handle or device to read a message from. Is that what the error is?
Thanks,
Pete
Re: Messages app plugin
Hi Pete,
Instead of the Receive Message action, try Mark current message read. Receive message is for scripting only, and it's how the Messages app communicates with Indigo. At this point I'm thinking I should have called it something else because it's kind of confusing.
Instead of the Receive Message action, try Mark current message read. Receive message is for scripting only, and it's how the Messages app communicates with Indigo. At this point I'm thinking I should have called it something else because it's kind of confusing.
Re: Messages app plugin
Hi All,
Hopefully someone can help with a messages problem I have? Have a look at the image below, I keep getting an "E" in front of my email address or phone number. I know is a setting in the message account somewhere but i can't find it - any help would be appreciated as its causing an error in the messages app.
Thanks
Martin
Hopefully someone can help with a messages problem I have? Have a look at the image below, I keep getting an "E" in front of my email address or phone number. I know is a setting in the message account somewhere but i can't find it - any help would be appreciated as its causing an error in the messages app.
Thanks
Martin
- Attachments
-
- Messages.tiff (56.69 KiB) Viewed 7827 times
-
virgahyatt
- Posts: 131
- Joined: Sat Jan 11, 2014 12:50 am
Re: Messages app plugin
Is there anyway to have it send a file/image? I know how to do it with applescript but it would easier to do it through the plugin.
Just for an example this is the script
set theAttachment1 to POSIX file" /Users/lil/pic.png"
tell application "Messages"
send theAttachment1 to buddy "+1 (xxx) x7 " of service "E:[email protected]"
end tell
Just for an example this is the script
set theAttachment1 to POSIX file" /Users/lil/pic.png"
tell application "Messages"
send theAttachment1 to buddy "+1 (xxx) x7 " of service "E:[email protected]"
end tell
Re: Messages app plugin
I have a trigger that has multiple actions.
Basically, if device state changes then I want to send an e-mail and send 3 distinct message events via the Messages plugin. In the log (if I enable debug) I can see that all 3 are being sent however only the last device in the list is receiving the message.
Basically, if device state changes then I want to send an e-mail and send 3 distinct message events via the Messages plugin. In the log (if I enable debug) I can see that all 3 are being sent however only the last device in the list is receiving the message.
Re: Messages app plugin
Hello,
I installed your Messages App Plugin and set up a device to send messages to my iPhone. I created a test trigger whose action is to use this device to send a message to my iPhone. The message does get sent to my iPhone. However, there is no notification (vibration/sound) on my phone that the message has arrived because the message is received as already being read. I believe this is because the Messages App on my MacMini also receives the same message and thus marks it as read. Is there any workaround for this since not getting any kind of notification on the iPhone kind of defeats the purpose of sending a message that requires immediate action? Thanks.
I installed your Messages App Plugin and set up a device to send messages to my iPhone. I created a test trigger whose action is to use this device to send a message to my iPhone. The message does get sent to my iPhone. However, there is no notification (vibration/sound) on my phone that the message has arrived because the message is received as already being read. I believe this is because the Messages App on my MacMini also receives the same message and thus marks it as read. Is there any workaround for this since not getting any kind of notification on the iPhone kind of defeats the purpose of sending a message that requires immediate action? Thanks.
Re: Messages app plugin
I handle this by creating a new iCloud account on my mac server that I use to communicate. That way you separate the "House" account form your personal account. This will stop it being read.
Re: Messages app plugin
But if I create a new account on the MacMini, then all of my apps on that computer (calendar, notes, contacts, etc., ) will lose sync with my iPhone and MacBook Pro data, correct? This is my main computer that I use all the time at home.peteinau wrote:I handle this by creating a new iCloud account on my mac server that I use to communicate. That way you separate the "House" account form your personal account. This will stop it being read.
-
petematheson
- Posts: 847
- Joined: Sun Sep 14, 2014 9:51 am
- Location: Southampton, UK
Re: Messages app plugin
In that case I'd suggest changing to something like pushover instead. I've just switched over to getting general notifications from pushover now. iMessages are reserved just for sending photos from cctv cameras etc
Sent from my iPhone using Tapatalk
Sent from my iPhone using Tapatalk
-
virgahyatt
- Posts: 131
- Joined: Sat Jan 11, 2014 12:50 am
Re: Messages app plugin
You can be logged into more than one iCloud account within the same user profile. Some features are not available are not available to the secondary account (i.e. iCloud Drive) but messages is available. Then when you setup the device you choose the other account to send it with.