Quantcast
Channel: Adobe Community: Message List - FrameMaker Scripting
Viewing all articles
Browse latest Browse all 3715

Re: How to apply hypertext marker to text with specific character tag

$
0
0

Thank you. To narrow it down, I want to find text that has the character format "Link" and add a gotolink hypertext marker. For example, in the phrase: "The quick brown fox jumped over the lazy dog," the word "over" has the character format "link" and I want it to click to somewhere else on the page.

 

I can find the character format in my document with this:

 

var doc = app.ActiveDoc;

 

function findLink(doc) { // looks for the character format Link

  charFmt = doc.GetNamedCharFmt("Link");

   

        if(charFmt.ObjectValid() == true)     {

        //Get the character format properties

        

        alert("Format found.");

        }

   

        //If we didn't find the character format, a warning....

        else alert("Could not find the Link character format!");

}

 

findLink(doc);

 

but I can't figure out how to get it to apply the gotolink marker.


Viewing all articles
Browse latest Browse all 3715

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>