Copy link to clipboard
Copied
Hi everybody, it's my fist post 😉
I try to add automatically glyph before all my hyperlinks do you know I could I do this ?
Thanks for your answers
This should do it. It inserts the Pilcrow (U+00B6) at the start of each link; change to any other glyph you want.
var hpl = app.documents[0].hyperlinks;
for (var i=0; i<hpl.length; i++)
{
urlText = hpl[i].source.sourceText;
urlText.insertionPoints[0].contents = '\u00B6'
}
Copy link to clipboard
Copied
This should do it. It inserts the Pilcrow (U+00B6) at the start of each link; change to any other glyph you want.
var hpl = app.documents[0].hyperlinks;
for (var i=0; i<hpl.length; i++)
{
urlText = hpl[i].source.sourceText;
urlText.insertionPoints[0].contents = '\u00B6'
}
Copy link to clipboard
Copied
thanks i'll try it