Jump to content

is there a run script alternative to my snippet-keyword-clipboard workflow

Recommended Posts

I currently have a very simple workflow that is Snippet(//hello) -> Keyword(Jim) -> Clipboard 'Hi {query}' 


The keyword is essentially an `argument` that is substituted into the text I have supplied in Clipboard


So if I am in a text field and type \\hello it opens up a rectangular text field, where i type the keyword, hit enter and then it pastes the text from clipboard.


Now I am just curious because I saw `Run Script` in workflow, but how do I pass in the argument? If I want to do Snippet -> Run Script -> Clipboard 


Run Script -> `'Hi' + "{query}" `


is it ever possible to do something like //hello(John) and initiate `Run a Script` from a text field and then have the result pasted in from Clipboard?  


Link to comment

Welcome @lumpinipark,


When asking for help with a Workflow, please always upload it somewhere. Descriptions and screenshots are rarely enough to get at the heart of a problem. Read the Reporting Problems with Workflows topic, as it gives a nice overview on how to build an effective report.


As for your specific question, if I understood it correctly, the Run Script is not going to help you because you can’t pass arguments to the snippet. So you can’t //hello({{arbitrary word}}) and have it work. The way you’re doing it now is correct.

Edited by vitor
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...