Hi there!
Following help from our Guru David, I'm trying to set a chained script filter workflow to paste a text string, chosen from a feedback list. My purpose is to get my personal shortcuts for TeXShop, a TeX editor, working from Alfred. However, there are few points I can't figure out (my competence stop with AppleScript ).
You can download my draft workflow here: http://d.pr/f/3BPN
The first step saves the OS X selection. The second step can be invoked by another hotkey, in case I don't select any text. The script filter in this step provides the text strings that I'm susceptible to need. E.g., \emph{}, \ref{} (minimal example, I'll set many more later).
I would like that the selected text (saved in a .txt file at step 1) comes between the brackets of the commands, like \emph{Previously selected text}. Or nothing if I haven't selected any text.
Also, I would like the second step not to show all the items from the script filter, but rather those who match what I will type in Alfred.
Does one of you know how to fix that? Any help will be much appreciated!