On 24/9/2006, at 12:54, Piero D''Ancona wrote:
[...] This must be some escaping trickery. Could some pious wizard explain what's wrong?
You need to escape the double quotes inside the attribute value (since the attribute value itself is surrounded in double quotes).
Also, the command needs to be run asynchronously to not stall TM.
Here’s a proof-of-concept, you will likely be disappointed by the time it takes to click the link, till text is actually inserted -- that’s time spent by osascript.