I'm writing a simple script that takes
1. the currently highlighted text,
2. the clipboard text,
And creates a new piece of text with both.
Sadly it doesn't work because it looks like Alfred totally kills the clipboard text.
I have a workflow with
1. a hotkey with "pass through to workflow" and Argument set to "Selection in OS X"
2. A script.
X=`pbpaste`
echo "[{query}](`pbpaste`)`echo $X`" | pbcopy
Basically, "X" is always set to "{query}". It looks like Alfred totally kills the clipboard text when an argument is sent.
Can someone please verify this is a bug?
PS I'm looking for a way to highlight "foo" while "http://bar" is in the clipboard, and it generates markdown: [foo](http://bar)