Yes this is definiotely possible and the algorithm could be identical to the FrameScript solution. I can think of two methods: Either using Copy and Paste to create the second instance of the marker or – as a marker is such a simple object – just read the MarkerText property from the existing marker and create a new Hypertext marker at the appropriate text location and set the MarkerText.
I once did a comparison between FrameScript and ExtendScript solutions (see http://wp.me/p25LLF-4n ) and you can use the same algorithms.
Hi dear Michael,
First of all, thank you for your prompt response! I appreciate that much! I looked at the code you presented on the web page you gave a reference to. The code seems to deal with some graphic issue and I find it hard to see how this example can help me resolve the hypertext marker issue. You said you are familiar with the Framescript solution for this TOC issue. Could you please point me to the framescript that duplicates the marker? As far as I understood, it was already written by somebody once. IMHO, the Adobe team should also provide a solution for this issue, as it seems to be a bug that has not been fixed for years.
Thank you very much in advance, and Happy New Year!
I was under the impression you already had such a script and my example should encourage you to move this existing solution to ExtendScript.
Unfortunately I have such a solution not available as an isolated script and do not have the time to create one.
I wish I could create such an extendscript on my own. Unfortunately, I
don't have a good command of the Extendscript syntax yet.
On Sun, Jan 1, 2012 at 6:37 PM, Michael Müller-Hillebrand