Article View: adobe.scripting.indesign
Article #20870Re: 2.0.1 Issues
From: Shane Stanley
Date: Mon, 03 Jun 2002 04:50
Date: Mon, 03 Jun 2002 04:50
35 lines
1961 bytes
1961 bytes
in article ef8e24c.5@WebX.aaQKaf7vad4, Kim Kohen wrote:
> From an existing Quark script:
>
> if not (head = "") then make text box at beginning with
properties
> {bounds:{"3�mm", "-106.6�mm", "33�mm", "3�mm"}, color:"Yellow", shade:13,
> vertical justification:top justified, name:Heading_Box}
tell text box
> Heading_Box set story 1 to alias (tempfilepath)
end tell --tell box
> end if
Try this:
set tempfilepath to (choose file) as text
set head to "blah"
tell application "InDesign 2.0.1"
tell document 1
try
set myYellow to color "Yellow"
on error
set myYellow to make color with properties {name:"Yellow", color
space:cmyk, color value:{0, 0, 100, 0}}
end try
if head is not "" then
set myFrame to make text frame at page 1 with properties {geometric
bounds:{"3 mm", "-106 mm", "33 mm", "3 mm"}, fill color:myYellow}
end if
place tempfilepath on myFrame without showing options
end tell
end tell
--
Shane Stanley, sstanley@myriad-com.com.au
Technical Details
Message-ID:
<B92132D0.31C4F%sstanley@myriad-com.com.au>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!supernews.com!news.tele.dk!small.news.tele.dk!193.251.151.101!opentransit.net!fr.clara.net!heighliner.fr.clara.net!213.73.101.75.MISMATCH!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebXReferences:
<ef8e24c.-1@WebX.aaQKaf7vad4> <ef8e24c.5@WebX.aaQKaf7vad4>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: f939a,105e5fe32b555bf9 X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2002-06-02 22:07:21 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-06!supernews.com!news.tele.dk!small.news.tele.dk!193.251.151.101!opentransit.net!fr.clara.net!heighliner.fr.clara.net!213.73.101.75.MISMATCH!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebX Newsgroups: adobe.scripting.indesign Subject: Re: 2.0.1 Issues Message-ID: <B92132D0.31C4F%sstanley@myriad-com.com.au> Date: Sun, 2 Jun 2002 21:50:56 -0700 References: <ef8e24c.-1@WebX.aaQKaf7vad4> <ef8e24c.5@WebX.aaQKaf7vad4> Lines: 39 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