こちらはハイパーリンク作成のサンプル。けっこう難しいです。最初にブックマークと同じくハイパーリンクオブジェクトを作成し、次にリンクテキストのリンク部分の領域を設定します。最後にリンクオブジェクトを作成し、その時、先ほど作成した2つの設定と下線の設定などを行って完成です。こんなところを読んでいるあなたはかなりのマニア。
tell application "Adobe InDesign CS2_J"
tell document 1
get properties of hyperlink 1
--★ここから下でテキストをクリックしてページへのリンクを作成できる
set theDest to make hyperlink page destination with properties ¬
{destination page:page 3, view setting:fit window}
set myhyperlink to make hyperlink text source with properties ¬
{source text:text from character 1 to character -2 of paragraph 2 of ¬
text frame 1 of page 1}
make hyperlink with properties {border color:black, highlight:invert, ¬
border style:solid, hidden:false, destination:theDest, ¬
source:myhyperlink, name:"456789", visible:false, width:thin}
end tell
end tell
