5/26/2023 0 Comments Send sms macSo what if you want to send to somebody that's not on iMessage. The other thing, of course, is that this only works with iMessage Apple system. So I had a previous conversation, I deleted it, but the Messages app still recognized this command.But if I tried to send it to an account that I'd never had communicated with before from this Apple ID it didn't work. It even worked when I deleted that conversation. But as long as I had an open conversation going already, which most of us do with people that we message regularly, it worked fine. In my test I couldn't get this to work if I'd never sent a message to that Apple ID before. But it does it without me actually having to be there as long as I have my Mac on. Of course my Mac needs to be running and needs to be able to trigger this event which will then launch Messages and send the message. The alert is going to be Open File at Time of Event and it's going to open that AppleScript and run it and automatically send that. Now I can double click on it and I can edit it. I'll call it send test message and it sets it up here in Calendar, launches Calendar, puts it right there. So this is in AppleScript and I can now save this and use it as a Calendar alarm. On the other end you would get the message coming in just as if the person had typed it. You can see it went out just as if I had typed it. So when I run this AppleScript you'll actually see the message go out. You can see I have a conversation already going with this demo iCloud account I have setup. It will actually send this out and you can actually see this in your Messages app. If you know more AppleScript you can further customize this. But we're just keeping things simple here. As a matter of fact we could've used this parameter for the email address of their Apple ID and this parameter for say the text. We could have used one of these parameters here to actually input the text. We just need to issue the command which is just a send command. This is an email address of somebody that has iMessage, of iMessageService. ![]() So the iMessage buddy is our variable, to buddy and then here's the email address of the buddy that we're going to send it to. Now these are still called buddies which is a holdover from the iChat app. The next thing we want to do, I'm just copying and pasting here rather than typing it fresh to make it quicker, is we want to get the person we're sending it to. That's just the wording of it of the awkwardness of AppleScript. So this is setting a variable we call iMessage service to the 1st service whose service type equals iMessage. So we want to go and set it up so that it's actually going to send via iMessage. So Messages is capable of using various services, iMessage, SMS, all sorts of things. ![]() Then the three lines that we need to tell the Messages app, the first is to get the service. Well, actually more like five because the first thing we need to do is we need to tell the Messages app to do something and we'll end the tell. Now we have to fill in the parts of the code. It gives us this nice blank AppleScript that we can fill in. So we're going to drag Run AppleScript action over here. Then there's no send message library command in Automator. So in Automator here we're going to create a new script and we're going to make it a Calendar alarm so we can insert it in the calendar when we're done. I'm doing this in Sierra and, of course, it assumes that you've got lots of things in place and working. It's not foolproof so you may want to experiment with it. In other words prescheduling a message to send them. Say you want to send somebody a message, over iMessage, using a Calendar alert. Video Transcript: Now here's something fun you can play around with and may be useful. Check out Schedule Text Messages With Automator at YouTube for closed captioning and more options.
0 Comments
Leave a Reply. |