Is this function or script already existing? I can’t find it…
maybe you could rewrite a version from this one? Just get the desired anchor instead of selected glyphs and check for the anchors instead of components. (Also the callAfter is obsolete now since we can use
newTab() now. I will update it soon)
Nice. You can completely remove line 7 and 8. They were just needed for the obsolete tab-open function. And you could also check if the selection is (only one) anchor. But it works, I like.
I updated it for each anchor
I made some change to the script: https://gist.github.com/schriftgestalt/df1d24c523b1aeb270e5