Tasker: Phone Number To Text
One of the issues with the Get Nickname From Phone Number task is that a phone number is returned if the contact isn't found. That's all fine, but when you try to read that number, Tasker will read it as a really long number. For example, 212-555-1212 would be read as "2 billion, 125 million, ...". So I wrote another utility to convert the phone number into individual digits with commas between. This way the number would be read as "2 1 2 5..." with pauses between each individual number.
It's actually a pretty quick task, but I can't take all the credit for it - I'm very much a novice at dealing with arrays and splitting and joining values in Tasker. Here's the post that helped me.
Phone Number To Text (30)
A1: Variable Search Replace [ Variable:%par1 Search:. Ignore Case:Off Multi-Line:Off One Match Only:Off Store Matches In:%phonedigits Replace Matches:Off Replace With: ]
A2: Variable Join [ Name:%phonedigits Joiner:, Delete Parts:Off ]
A3: Return [ Value:%phonedigits Stop:On ]
It's actually a pretty quick task, but I can't take all the credit for it - I'm very much a novice at dealing with arrays and splitting and joining values in Tasker. Here's the post that helped me.
Phone Number To Text (30)
A1: Variable Search Replace [ Variable:%par1 Search:. Ignore Case:Off Multi-Line:Off One Match Only:Off Store Matches In:%phonedigits Replace Matches:Off Replace With: ]
A2: Variable Join [ Name:%phonedigits Joiner:, Delete Parts:Off ]
A3: Return [ Value:%phonedigits Stop:On ]
Comments
Post a Comment