Alfred Workflow: iMessage to Friend
While working, everything can be a distraction: Twitter, email, your co-workers and texts from iMessage, of course. Answering your friends‘ texts will take you out of your workflow and after that, it takes minutes to get back into it.
That’s why I created the Alfred workflow „iMessage to Friend“, which allows you to directly write and send a message to a friend from within Alfred. Just hit Alfred’s hotkey, enter your friends (nick)name, write a message, hit enter and you’re done. No more clicking and application switching required. In order to use workflows you will need the Powerpack version of Alfred v2.
Version 1.2, 05.10.2013
If you are looking for the old extension for Alfred v1 click here.
1.2 (05.10.2013): Compatibility with Alfred v2.
1.1 (05.01.2013): Fixed bug in which the extension didn’t work properly, if your iCloud account isn’t the first account in iMessage’s account list. (thanks to @Cinematze for reporting)
1.0 (05.12.2012): First release of iMessage to Friend.
If you have more than one iCloud account enabled in iMessage, the workflow will only work with the first one. Group chats aren’t possible, because they aren’t supported through iMessage’s AppleScript.
After you have installed/imported the workflow, you´ll have to replace two things:
Friend1 (and so on) in the trigger’s keyword, title and subtext field with your friend´s (nick)name, e.g.
FRIEND1_IMESSAGE in the corresponding AppleScript action with your friend´s phone number or email address, e.g. 00491501234567 (country code + prefix + number) or email@example.com. Keep in mind that the number or email address must be activated for iMessage and don’t remove the quotation marks:
Repeat these steps for your other friends. If you have more than five friends, feel free to add more by copying the trigger and actions.
Now you’re ready to go.
How to use it
If your friend´s name is Kira and you´ve entered her phone number or email address and changed the corresponding keyword to „kira“, hit your hotkey to open/enter Alfred and type something like:
kira Hello Kira, how are you?
This will send an iMessage with the text „Hello Kira, how are you?“ to Kira’s iMessage-enabled phone number or email address. It’s that simple.