Jump to content

Workflow selection to clipboard (n00b)-- variable passing/information flow


Recommended Posts

So, I have a very simple ruby script filter that parses (`readlines`) a text file and `puts`  the required workflow XML back to Alfred.

 

How now, when one makes a selection, from that dropdown listing can I copy that value/information to the clipboard or otherwise pass it on to another script. Simply linking to the clipboard action does not seem to work. It does, however, if I `puts` a value to the clipboard action, but then I do not get the user dropdown.

 

Thanks,

 

~CT

Link to comment

Each item in the dropdown starts with something like <item uid='myuid' arg='myarg' valid='yes'>. That myarg (that can be what you want, naturally), is what will be passed further on when you select the item from the dropdown.

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...