Jump to content

Configurations in a workflow


simonbs
 Share

Recommended Posts

Hello,

 

It would be great if you could somehow enter configurations in a workflow and these configurations would apply to the entire workflow. This could simply be a textbox with some JSON that the workflows could access and parse. I don't think anything fancy is needed.

 

For example, in my CloudApp workflow (more on this here), I need people who use it to edit a file to enter the credentials for their CloudApp account and archive the files themselves. It would be way easier if they could just import the workflow and fill out the needed fields.

Link to comment
Share on other sites

You could add new keywords and scripts to edits the files programmatically. An add keyword could append to the end of a file, remove could grep the required line and remove it. Or you could look into using an sqlite database instead of text files if you think that would be better. Editing database entries might be simpler than greping and seding text files

Link to comment
Share on other sites

For example, in my CloudApp workflow (more on this here), I need people who use it to edit a file to enter the credentials for their CloudApp account and archive the files themselves. It would be way easier if they could just import the workflow and fill out the needed fields.

 

In my GitHub Workflow I solved it this way: Video

 

At first the user only sees the login command (gh > login <user>, I use ">" as indicator for commands to manage the workflow itself). After calling this login command with a username, I open (with applescript) a dialogbox for the password. So the password does not appear in the Alfred history.

Link to comment
Share on other sites

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
 Share

×
×
  • Create New...