Article View: adobe.scripting.indesign
Article #20339Re: AppleScripting the creation of a URL Hyperlink
From: Peter Boctor
Date: Tue, 23 Jul 2002 03:51
Date: Tue, 23 Jul 2002 03:51
15 lines
1527 bytes
1527 bytes
Chad,
Here is a quick sample:
tell application "InDesign 2.0.1"
tell document 1
set myFrame to make text frame with properties {geometric bounds:{0, 0, "5in", "5in"}, contents:"http://www.apple.com"}
set myText to object reference of text 1 of myFrame
set myHyperlinkDestination to make hyperlink URL destination with properties {name:"www.apple.com", destination URL:"http://www.apple.com"}
set myHyperLinkSource to make hyperlink text source with properties {name:"www.apple.com", source text:myText}
make hyperlink with properties {name:"www.apple.com", source:myHyperLinkSource, destination:myHyperlinkDestination}
end tell
end tell
-peter
Technical Details
Message-ID:
<ef9cac6.0@WebX.aaQKaf7vad4>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-04!supernews.com!newsfeed.gamma.ru!Gamma.RU!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebXReferences:
<ef9cac6.-1@WebX.aaQKaf7vad4>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,948d3022027af7aa X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2002-07-22 21:13:34 PST From: "Peter Boctor" <peter.boctor@adobe.com> Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-04!supernews.com!newsfeed.gamma.ru!Gamma.RU!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebX Newsgroups: adobe.scripting.indesign Subject: Re: AppleScripting the creation of a URL Hyperlink Message-ID: <ef9cac6.0@WebX.aaQKaf7vad4> Date: Mon, 22 Jul 2002 20:51:35 -0700 References: <ef9cac6.-1@WebX.aaQKaf7vad4> Lines: 16 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit