erusev Posted July 20 Share Posted July 20 (edited) I made a workflow that lets me publish the selected text as a GitHub gist. Here's how it works: I select the text I want to publish, I open Universal Actions, and I select Publish as Gist (my workflow). Now I'd like to add an extra step that asks for the name of the new gist. I imagine something similar to the built-in Email to... action which asks for the email of the recipient (see attached screenshot). Is this possible? Edited July 20 by erusev Link to comment
vitor Posted July 20 Share Posted July 20 Use an Argument and Variables Utility to store the output of the Universal Action to a variable, then use a Keyword Input to ask for more information (leave the Keyword itself empty). You can again save the output of that to another variable, or use it directly. Link to comment
erusev Posted Saturday at 01:52 PM Author Share Posted Saturday at 01:52 PM Worked 😊 Thanks for taking the time respond! Any tips on how to pass the 2 variables to an external script? I see how I can concatenate the 2 strings into a single string and pass that, but I'd like to pass them as 2 separate arguments (`$1` and `$2`). Link to comment
andy4222 Posted Saturday at 06:42 PM Share Posted Saturday at 06:42 PM (edited) 4 hours ago, erusev said: Any tips on how to pass the 2 variables to an external script? You can use Run Script and call your script like this: /usr/local/bin/node transformer.js "$operation" "$capturedString" "$userInput" "$userInputSeparator" Here, all these args are values that are set using Args utility. In your script, depending on the language, you can fetch these args. I think that is a useful workflow. Would be nice if you can share it with the community Edited Saturday at 06:43 PM by andy4222 Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now