| Solved Feels like I am having a diologue with myself, but for the interested reader, I solved this puzzle:
Ok, that was weird!
I finally figured out that BBedit was seeing something different in the replace text, than what Applescript was displaying on the screen. I clued in that setting the current_name to characters, and then coercing it back to string was the problem. Turns out that before doing this it was class "utxt" and after it was class "TEXT". That was the problem. Coerced it back to unicode, and all went well.
Dang - that was subtle, and to me still appears to be a fault in BBedit - it states that it wants a string input in the BBedit dictionary.
Oh well, on to the next stage... |