var hpl = app.documents[0].hyperlinks; for (var i=0; i<hpl.length; i++) { var url = hpl[i].destination.destinationURL; hpl[i].source.sourceText.footnotes.add(undefined, undefined, {contents: url}); }
某所で書いたのでここにも晒しておく。
Hyperlink.source.sourceText
オブジェクトがそのままWordオブジェクトだったりTextオブジェクトなので、そのままfootnotes.add
メソッドが叩けるので簡単でした。