Tasker: Get Nickname From Number

Another Tasker utility I set up was to get a name from a phone number. So, when someone calls or texts, I can say the name of the person calling/texting if they are in my address book. If they aren't there, then I want to say the number instead of the name.

In addition, I have some names that are difficult to pronounce in my address book. So, I set up nicknames for those users which spell out their names phonetically. (I could also use the nicknames for people like "dad" if I wanted). This utility will return the nickname (if there is one for that person) so the pronunciation will be correct.

Get Nickname From Number (28)
A1: AutoContacts [ Configuration:Name as Nickname: true
Phone Number: %par1 Package:com.joaomgcd.autocontacts Name:AutoContacts Timeout (Seconds):1000 ] 
A2: Return [ Value:%acnickname Stop:On ] If [ %acnickname Set ]
A3: Return [ Value:%par1 Stop:On ] If [ %acnickname !Set ]

There's a parameter of the phone number passed in. It uses Auto Contacts to look up the person and return the nickname. If the person isn't found, then the Auto Contacts variable %acnickname won't be set and the phone number (the passed-in parameter) is returned.

This utility is called by a few different tasks. I'll talk about those other tasks in upcoming posts.

Comments

Popular posts from this blog

Tasker: Get Voice Command

Blackjack Streak House Advantage

Picking 87 NCAA Basketball Games