Hyperlink Interface

version 9/140814 by Leonardo Boselli

  • Home page
  • Beginning
  • Previous
  • Next



  • Section - Rule for object hyperlinking something
    Rule for object hyperlinking something (called item) (this is the Hyperlink Interface object hyperlinking rule):
        if object hyperlink highlighting is false or item is hyperlinkless:
            say the printed name of item;
            continue the action;
        let output be indexed text;
        now output is the printed name of item;
        let hl be indexed text;
        now hl is the hyperlink of item;
        if hl is "", now hl is word number ( the number of words in output ) in output;
        repeat with wordcounter running from 1 to the number of words in output:
            say "[if wordcounter > 1] [end if]";
            if word number wordcounter in output matches the regular expression "\b(?i)[hl]":
                say "[o][word number wordcounter in output][x]";
            else:
                say "[word number wordcounter in output]".