About this workflow
Cardhop is a contact application that live in your menubar and is developped by Flexibits. This workflow add multiple interactions from Alfred.
Discussion Download Source Code
Features
Keyword
chsor hotkey : Send the query to Cardhop. If the query is empty, it tries to get the selection from the front application and send it to Carhop (In short, you can select the contact information on it’s website or email and callchsfrom Alfred and the selection should be sent directly to Cardhop). You can use this action to send the selection or pass a string to your Favorites list (alternative to keyword:chf) or to the Cardhop’s Actions (alternative to keyword:cha).chf: Send a string from your Favorites list directly to Cardhop (could be used as a Snippets/Bookmarks list to rapidly write a query to Cardhop that you know gives you the right information in it without the need to write it all). Write your list in the Workflow Environment VariablesFavoritesand separated by semicolon (;). Ex:Call mom home;Mail boss work;facetime Complicated Name;website businessName;/MyTag;Direction dentist… A variable{q}could be used to have a placeholder for a string that you want to set just before sending to Cardhop (ex:Email {q} workwhere{q}could be changed to any name at the time that you invoke the workflow).cha: Show a list of possible Carhop actions. If arriving to this function using the Send feature (chs), then the selection or query would be appended to the Cardhop action before sending it.
Hotkey
- Send the selection to the workflow (alternative to keyword:
chs) - Send selection directly to Cardhop. For use if you prefer to send the selection directly to Cardhop with a hotkey instead of a keyword
Fallback Search
- Send the query to Cardhop : If you want to write the information directly in Alfred without any keyword before. To make it works, you would need to add the Fallback search into your Alfred Preferences at:
Features/Default Results/Setup fallback results/+/Workflow Trigger/Send to Cardhop
External Trigger
Send a string to Cardhop from an external script. Other external triggers are set in case that you want to pop the
Favorites listorActions listfrom an external script.Append/Prepend string : Add a string before or after the main string before sending using a predefined list or any string if the query doesn’t match an item in the list (Could be useful to have a list of predefined group/tags) (See
Workflow Environment VariablesandNavigationlists below)
Workflow Environment Variables
Favorites[list delimited by;] : See keywordchfaboveAppendToSend[list delimited by;] : Set a predefined list of string to append using the Append feature (ALT key)PrependToSend[list delimited by;] : Set a predefined list of string to prepend using the Prepend feature (CTRL key)
Navigation
CMD: Go to the Send feature Actions List (chs)ALT: Activate the selected item and append extra string (using theAppendToSendlist)CTRL: Activate the selected item and prepend extra string (using thePrependToSendlist)
Tips
Set Cardhop as default contact application
To use Cardhop as default contact application in Alfred:
Insert x-cardhop://show?id={uid} into Features > Contacts > Advanced > URL Handler instead of addressbook://{uid}
Directly activate an action in Cardhop
Cardhop seems to delay the keyboard inputs until it has done parsing the query. Therefore, to directly activate an action you can rapidly press Enter key a second time when you select an item from your Favorites list in Alfred and it should run the first action that Cardhop returns.
Changelog
2018-02-24 - Update Version 1.2.5
- Cardhop Actions list should now be in your own language (I’m getting the localization from the Cardhop application directly, so you should get the same thing as in the application)
- Some bugs fix
2017-11-08 - Version 1.2.1
- Added “Skype for Business” in the Cardhop’s action list (new action from Cardhop 1.0.2)
2017-11-06 - Update Version 1.2.0
New Features
- Keyword “cha” : Show a list of possible Carhop actions. If arriving to this function using the Send feature (chs), then the selection or query would be appended to the Cardhop action before sending it. (Could be used as an easy way to remember possible actions that can be done with Cardhop)
- Favorites List : A new variable “{q}” could be used to have a placeholder for a string that you want to set just before sending to Cardhop (ex: “Email {q} work” where {q} could be changed to any name at the time that you invoke the workflow).
- Append/Prepend string : Add a string before or after the main string before sending using a predefined list or any string if the query doesn’t match an item in the list (Could be useful to have a list of predefined group/tags: /Business;/Friends…)
New Workflow Environment Variables
- AppendToSend : Set a predefined list of string (separated by semicolon “;”) to append using the Append feature (ALT key)
- PrependToSend : Set a predefined list of string (separated by semicolon “;”) to prepend using the Prepend feature (CTRL key)
Navigation
- CMD : Go to the Send feature Actions List (chs)
- ALT : Activate the selected item and append extra string (using the AppendToSend list)
- CTRL : Activate the selected item and prepend extra string (using the PrependToSend list)
2017-11-01 - Update Version 1.1.0
New Feature
- Added keyword chf to send a string from your Favorites list directly to Cardhop.