bash-workflow-handler icon indicating copy to clipboard operation
bash-workflow-handler copied to clipboard

<arg></arg> instead of <item arg="">

Open cheniel opened this issue 11 years ago • 0 comments

As of Alfred 2.0.4, can be used to specify the argument, rather than <item arg="..." ...>. This allows for newlines as well as other XML advantages.

I was able to use this modification to pass arguments with newlines to a Copy to Clipboard action in a workflow I've been working on. For that, I had to implement my own escape characters in getXMLResults which I did not include in this PR (https://github.com/cheniel/alfred-comments/blob/master/scripts/lib/workflowHandler.sh). Regardless, this PR modifies the workflow handler to allow for more flexible arguments.

Here is the original issue that led to the Alfred update.

Here is the item in the change log for Alfred 2.0.4: "Add in as an optional replacement to which allows for newlines in the argument and other various xml advantages"

cheniel avatar Jul 25 '14 14:07 cheniel