Can somebody show me how to send a message directly to the user of iMessage via Messages app?
tell application "Messages" if service type of service of buddy whose name is ("Name here" is "iMessage") then set x to 1 if service type of service of buddy whose name is ("Name here" is "iMessage") then set x to 2 if service type of service of buddy whose name is ("Name here" is "iMessage") then set x to 3 send "Message" to buddy "mail of name" of service x end tell
I need to send a message to an account only via iMessage, not via google talk, AIM, bonjour. Thank you!
To manually add effects to your iMessage, open the Messages app and type your text. Then "long-press" (press and hold for a second or so) on the blue arrow that you usually tap to send a message. This brings up your special effect options. These are divided into two categories: bubble and screen effects.
Select Time of Day Tap Month and scroll down to adjust the date you want the message sent on. When you're finished, tap Next. Scheduling messages in iMessage this way will set up an automatically recurring message to go out on the same date at the same time each month.
Instead of having to hard-code the iMessage service, you can find it automatically:
sendMessage.applescript
(Note: make sure to choose the Text option).osascript sendMessage.applescript 1235551234 "Hello there!"
.sendMessage.applescript:
on run {targetBuddyPhone, targetMessage} tell application "Messages" set targetService to 1st service whose service type = iMessage set targetBuddy to buddy targetBuddyPhone of targetService send targetMessage to targetBuddy end tell end run
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With