I’m note sure that does the same as the OP, plus the second line returns an error as the command (or the bare title string) is not understood. If I make $MyCommand the
Plus, the starting context was $Text, not $Name, so ^text^ doesn’t work like ^title^ as—by default—you get HTML paragraph mark-up.
I also tried:
But but the output is
H√ºckel and G√∂del.
So what encoding is Tinderbox passing to runCommand? It seems like it’s necessary to store the LANG Environment variable, re-set the LANG to en-US.UTF-8, process the rest of the above script, then re-set the LANG.
I’ll admit I’m unclear why we are using this method to place something on the pasteboard, aside from the encoding issue.