Article View: adobe.scripting.indesign
Article #20745Re: Applescript: make a text frame on a master page
From: Shane Stanley
Date: Wed, 05 Jun 2002 06:05
Date: Wed, 05 Jun 2002 06:05
38 lines
2077 bytes
2077 bytes
in article ef8e3b9.8@WebX.aaQKaf7vad4, Carl Davaz wrote: > set theTextProps1 to get properties of text 1 of text frame "Caption" of > master spread 2 Carl, This was close -- you need to get the properties of insertion point 1: tell application "InDesign 2.0.1" tell document 1 set theProps to properties of text frame "Caption" of master spread 1 set textProps to properties of insertion point 1 of text frame "Caption" of master spread 1 make text frame at page 2 with properties theProps set properties of insertion point 1 of result to textProps end tell end tell You could also use a different approach: tell application "InDesign 2.0.1" tell document 1 duplicate text frame "Caption" of master spread 1 move result to page 2 set geometric bounds of text frame "Caption" of page 2 to geometric bounds of text frame "Caption" of master spread 1 end tell end tell I have to say, though, that the style approach strikes me as more appealing. Keep in mind there are issues with either approach on facing-page documents regarding what the ruler origin is set to. -- Shane Stanley, sstanley@myriad-com.com.au
Technical Details
Message-ID:
<B923E749.31E71%sstanley@myriad-com.com.au>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!supernews.com!peer1-sjc1.usenetserver.com!usenetserver.com!iad-peer.news.verio.net!news.verio.net!news.maxwell.syr.edu!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebXReferences:
<ef8e3b9.-1@WebX.aaQKaf7vad4> <ef8e3b9.8@WebX.aaQKaf7vad4>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,8e47b5875d947fcb X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2002-06-04 23:07:24 PST From: Shane Stanley <sstanley@myriad-com.com.au> Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!supernews.com!peer1-sjc1.usenetserver.com!usenetserver.com!iad-peer.news.verio.net!news.verio.net!news.maxwell.syr.edu!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebX Newsgroups: adobe.scripting.indesign Subject: Re: Applescript: make a text frame on a master page Message-ID: <B923E749.31E71%sstanley@myriad-com.com.au> Date: Tue, 4 Jun 2002 23:05:30 -0700 References: <ef8e3b9.-1@WebX.aaQKaf7vad4> <ef8e3b9.8@WebX.aaQKaf7vad4> Lines: 44 User-Agent: Microsoft-Outlook-Express-Macintosh-Edition/5.0.3 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit