Jump to content
Sign in to follow this  
jothirams

Shortcut key to invoke a workflow with arguments

Recommended Posts

Hello,

 

I’m using an alfred workflow: Google Translate

 

In that, the text to invoke that work flow is "gd". Then you have to type the from and to language for translation such as "gd de>en" or "gd en>de". Is there a way to have a shortcut key that will put "gd de>en" and then wait for my german input.

 

Note: I already raised the issue in github repo of that workflow and the author's response was that it had to be an alfred feature to handle this.

https://github.com/thomashempel/AlfredGoogleTranslateWorkflow/issues/13

 

Best Regards,  
Joe.
Edited by jothirams

Share this post


Link to post

 

Hello,

 

I’m using an alfred workflow: Google Translate

 

In that, the text to invoke that work flow is "gd". Then you have to type the from and to language for translation such as "gd de>en" or "gd en>de". Is there a way to have a shortcut key that will put "gd de>en" and then wait for my german input.

 

Note: I already raised the issue in github repo of that workflow and the author's response was that it had to be an alfred feature to handle this.

https://github.com/thomashempel/AlfredGoogleTranslateWorkflow/issues/13

 

Best Regards,  
Joe.

 

 

Certainly. In that workflow, you can add a Trigger->Hotkey item to the front of the Keyword (or Script Filter) item (don't forget to connect them). In the Hotkey properties, set your hotkey of choice then for the "Argument", select "Text" and then in the text field, add whatever text you want passed there by default

Share this post


Link to post

Certainly. In that workflow, you can add a Trigger->Hotkey item to the front of the Keyword (or Script Filter) item (don't forget to connect them). In the Hotkey properties, set your hotkey of choice then for the "Argument", select "Text" and then in the text field, add whatever text you want passed there by default

 

Awesome!.. Works flawlessly..

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  
×
×
  • Create New...