Each hyperlink source can only be used once. That's how they work...
Shared hyperlink destinations can be used as many times as you need,
but you can only create them once...
Also, you can't name two of any aspects of hyperlinks the same name.
(I.e. You can't have two hyperlink destinations with the same name.)
Thanks a lot for answering.
The fact is I change my selection all the time and then relaunch the script. It means that app.selection should be always a different text source.
I mean :
considering this text :
scin hent vullaore consed magna faciliquam zzrit la consenit lorem dio od magna accumsandre feu feuguerostio endre dolestrud dolesen issequi ssissisi.
Utpat. Lorperit atie dionullute modignim dunt in exer
I select vullaore then execute the script. I want it to hyperlink vullaor.
Then once it's done, I select lorem and launch the script once again. So I expect this time the script takes lorem as source.
If I use dummy datas such as hyperlien(app.selection, pg) in a other script, it runs well (hyperlinks are stacked). But when I intend to use it in my global script with the real inputs, hyperlinks don't stack anymore.
It's like something were persistent after the script :-(
Hope to find the trick.
I'm not sure I understand what you mean by "stacked".
Once again, thanks for your care on my topic.
Sorry for "stacked", my frenglish stroke back ;-)
I mean that the standard behaviour of adding hyperlinks is like that in the hyperlinks palette :
but in my script, the last hyperlink in the palette isalways replaced by the new one. I don't have a case like I describer but this in the palette :
h1 is replaced by h2 which is replaced by h3, etc.
So at the end I have only one Hyperlinks when I want 3 of them. As I said, I launched the script 3 times and expected to get 3 different hyperlinks but in fact, I get always the same replaced hyperlink.
I place screenshots asap.
Thanks in advance.
here are the screenshots
h1.jpg is a capture of the screen after I launched the script at first. I get an hyperlink, that's ok.
h1p.jpg are the h1 properties.
h2.jpg is the capture of the palette after I launched the script the second time. The second hyperlinks replaced the first one.
h2p.jpg are the h2 properties.
Hope it helps understanding the problem.