Jump to content

How to make a universal action that asks for extra input


Recommended Posts

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?

 

image.png

Edited by erusev
Link to comment
  • erusev changed the title to How to make a universal action that asks for extra input
  • 3 weeks later...
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 by andy4222
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...