Jump to content

Recommended Posts

3oEjI8h47F0lZvTc88.gif

I was unhappy with the Alfred support for Continuity/Handoff calling via iPhone so I created this. It integrates with contacts. Use commands

call [contact name or arbitrary number]

 and 

sms [contact name or arbitrary number]

 to make it work. 'im' is an alias of 'sms'. 

 

New in version 2

  • Faster than before
  • Supports entering in numeric numbers also
  • Now has primitive error checking. You should see the Facetime application pop up less.
  • More hack-able
  • FIXED: If Contacts isn't open when the command is invoked it will now close itself afterwards.
  • Requires Alfred 3.

typing.png

initcall.png

58b623ce3c6d5_callorsmscontact.png.7f50700e481247495f119da14c187775.png

Download from Github.

Download from Packal.

Edited by amoose136
update workflow image

Share this post


Link to post

Hi.

This workflow looks very good. But not work with my czech number.

I have contacts with numbers "+420 XXX XXX XXX" format so its 12 numbers.

Share this post


Link to post

Hi.

This workflow looks very good. But not work with my czech number.

I have contacts with numbers "+420 XXX XXX XXX" format so its 12 numbers.

It was designed for use in the US but  it should be easy to change for other countries. The two yellow magnifying glasses check length. The top one checks for numbers of length 7 (xxx-xxxx) plus an optional 3 or 4 digits in front for country codes (+x-(xxx)-..., (xxx)-....). The for text messages area codes are required in the US so it only checks that numbers are 10 or 11 digits long. (+x-(xxx)-xxx-xxxx or (xxx)-xxx-xxxx). You should be able to modify the parts in the brackets to make it work for Czech numbers or anywhere else in the world. Another option is to just by pass the error checking and send the number directly to the scripts at the end after the uncolored magnifying glasses. If an improper number is dialed facetime will pop up or if you try to text it you will get a failed to send message.

Share this post


Link to post

Hallo!

 

Thanks for this workflow. Just a problem here: I can't figure how to send SMS...

I tried the following:

**A**

call Alfred and write "sms [contact name]" ENTER

--> nothing happens (iMessage doesn't even open)

 

**B**

call Alfred and write "sms [contact number] test message" ENTER

--> again nothing happens

 

No error message, nothing at all.

Strange enough: it seems that telephone calls correctly begin...

Running MacBook Pro OSX 10.11.5 + iPhone 6 iOS 9.3.3, both in italian (maybe this is the point?)

Edited by Hileotech

Share this post


Link to post

Hallo!

 

Thanks for this workflow. Just a problem here: I can't figure how to send SMS...

I tried the following:

**A**

call Alfred and write "sms [contact name]" ENTER

--> nothing happens (iMessage doesn't even open)

 

**B**

call Alfred and write "sms [contact number] test message" ENTER

--> again nothing happens

 

No error message, nothing at all.

Strange enough: it seems that telephone calls correctly begin...

Running MacBook Pro OSX 10.11.5 + iPhone 6 iOS 9.3.3, both in italian (maybe this is the point?)

The proper usage is in **A**. Numbers must be formatted with 10 or 11 digits as per US rules but it's easily changed to suit your region. If you type

im 1234567890

or

im 12345678901

or

sms 1234567890

or

sms 12345678901 

or assuming Franz Schubert is in your contacts and has a number containing 10 or 11 digits once other characters are removed,

sms Franz Schubert 

or

im Franz Schubert

It should work. I don't know why no error message appeared though. I might make it possible to set your area code/region in the future and then it will prepend your area code when texting if it's not present in the number and it could also adjust standard number length by region based on that area code and country code stored in environmental variables. That will have to wait for the next version though.

Share this post


Link to post

Well: thanks for your help.

I have all contacts formatted as follows:

 

Name Surname

+39 [italian international prefix] 123 4567890

 

I changed the rule in order to accept 12 or 13 digits.

The problem, as I told you, is that Message doesn't even open... I'll try again in a few hours and report back.

:)

Share this post


Link to post

I also have an issue that when trying to send texts or place calls, after entering the info and selecting recipient or typing full number, nothing happens. No error, Messages does not open, messages are not sent. The previous version worked perfectly.

 

I would summon Alfred

 

type - im Tonya (or full phone number)

 

hit return

 

type message

 

hit return and message was sent without focusing on the Messages app, and giving me an alert message back saying that the message was sent.

 

 

In this version, I get nothing at all. Am I doing something wrong?

Share this post


Link to post

I get the same problem. Nothing opens when I go through the exact steps that antisyphus goes through.

 

I also have an issue that when trying to send texts or place calls, after entering the info and selecting recipient or typing full number, nothing happens. No error, Messages does not open, messages are not sent. The previous version worked perfectly.

 

I would summon Alfred

 

type - im Tonya (or full phone number)

 

hit return

 

type message

 

hit return and message was sent without focusing on the Messages app, and giving me an alert message back saying that the message was sent.

 

 

In this version, I get nothing at all. Am I doing something wrong?

Share this post


Link to post

I also have an issue that when trying to send texts or place calls, after entering the info and selecting recipient or typing full number, nothing happens. No error, Messages does not open, messages are not sent. The previous version worked perfectly.

 

I would summon Alfred

 

type - im Tonya (or full phone number)

 

hit return

 

type message

 

hit return and message was sent without focusing on the Messages app, and giving me an alert message back saying that the message was sent.

 

 

In this version, I get nothing at all. Am I doing something wrong?

All that should happen when you type 

im Tonya

or use a phone number is it should open Messages with a message to Tonya in focus. If messages doesn't open then typing the message and hitting enter will do nothing. Out of curiosity, what happens if you route the immediate output of the bottom triggers (just before the save initial query block but after the applescript block) to a "Display Big Type" output? If nothing displays it's very broken indeed. It should display the number but all the formatting should be there. If that works then check the output at the "saved cleaned query" step. I currently am unable to make it not do anything on my computer and until I can replicate the error I'm afraid I won't be much help.

Edited by amoose136

Share this post


Link to post

I love this workflow man, thanks!

 

 

I only have one "bug" to report:

 

Whenever I type "SMS [contact name]", it goes to the messages app and it opens the dialog window for that person, ready to type and send a text message. As it should, no problem there.

 

 

But then I noticed:

 

When the messages app is open and the contact person's dialog window is already in focus, the same command via Alfred: instead of using the text number, it changes to iMessage mode and I can't send a text as it wants to use imessage instead. (contact doesn't have an iphone)

 

Maybe you could implement a check that, if the person already is in focus, stop looking or something. I dunno, I'm not a programmer :)

 

 

I can make a video of the problem if you want, it's nothing major but it upsets the goal of the workflow though.

Edited by squandre

Share this post


Link to post

I love this workflow man, thanks!

 

 

I only have one "bug" to report:

 

Whenever I type "SMS [contact name]", it goes to the messages app and it opens the dialog window for that person, ready to type and send a text message. As it should, no problem there.

 

 

But then I noticed:

 

When the messages app is open and the contact person's dialog window is already in focus, the same command via Alfred: instead of using the text number, it changes to iMessage mode and I can't send a text as it wants to use imessage instead. (contact doesn't have an iphone)

 

Maybe you could implement a check that, if the person already is in focus, stop looking or something. I dunno, I'm not a programmer :)

 

 

I can make a video of the problem if you want, it's nothing major but it upsets the goal of the workflow though.

Thanks for the report. I can replicate the behavior but it's not so clear how to fix it. It would probably require some sort of AppleScript to be inserted just before the result block but I don't know if I can check if the contact/number is already open or not. I'll investigate more into the matter.

Share this post


Link to post

As of the most recent update today (2.2), the number format checking has been removed. Adding it was based on some falsehoods.  I also implemented a workaround for an Apple Event Handler failure that occasionally appears in recent macOS updates and causes FaceTime to open instead of contact calling to happen. A complete python rewrite is in the works to fix some of the bigger issues.

Edited by amoose136
forgot link

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×