Dial with PushDialer workflow for Alfred 2
An Alfred 2 workflow making it easy to dial phone numbers from OS X contacts, text selected in any OS X application, or the Alfred prompt with PushDialer. Note you need the Alfred Powerpack to enable workflows.
Using it with OS X contacts
The workflow offers two different ways to dial addresses retrieved from OS X’ contacts store with Alfred:
it defines a custom contacts action which will dial a number when actioned from Alfred’s contacts viewer. For this to work, assign the “Dial” action to phone numbers in Alfred’s Contacts settings (found in Preferences » Features » Contacts » Contacts):
it offers a
callkeyword that will return phone numbers for contacts matching the query, right in the Alfred result window:
callreturns the first found of the mobile, home, work or main phone numbers, or pager number, for contacts whose name, nickname or company name matches the query. If you want to specifically target home, work or mobile numbers,
callmwill do your bidding.
Note the search is incremental: every query word is matched to the result set individually, which allows you to refine the results using only partial queries:
Query word matching is case agnostic for words in all lower case, case sensitive otherwise (i.e. “Cool” finds “Liquid Coolants Ltd.”, but not “Mancoolie”, while “cool” finds both).
Using it with text selected in OS X applications
There are two hotkeys defined to get selected text into the workflow: the first will run the selected text straight through the dial routine, the other will put it into the Alfred prompt, ready to execute. Note Alfred strips the keyboard shortcuts on workflow installation, so you will have to set your own Preferences » Workflows » Dial with PushDialer.
Using it from the Alfred prompt
The workflow defines a
dial keyword: any query that follows it is passed to the dial routine.
- If you miss mobile numbers in feedback, make sure the phone label in the Contacts application is not set to “iPhone” – that label is not recognized by the utility used to query the contacts store [Issue #1].
- Others maybe, probably. Check the Issues section. Create a new issue if you think you have found one that is not reported there.
Credits and License
Inspired by the PushDialer workflow by Florian Pellet.
call keyword family relies on the contacts utility by Shane Celis to provide its results. Contacts is licensed under the GPL version 2. As it is distributed with the workflow, this means the Dial with PushDialer workflow is also distributed under the terms of the General Public License version 2.
- fork the repo (bonus points for creating a feature branch)
- commit you changes
- make sure you haven’t broken anything (even better: write some tests!)
- submit a pull request