Article View: adobe.scripting.indesign
Article #19895Re: Horizontal Flip on a Line Object
From: Shane Stanley
Date: Wed, 13 Nov 2002 22:39
Date: Wed, 13 Nov 2002 22:39
24 lines
1796 bytes
1796 bytes
in article 1de69327.-1@WebX.la2eafNXanI, Graeme Fidler wrote:
> I have created a line using VBScript, I have used the appropriate co-ordinates
> but the system draws the line from top left to bottom right. I need my line to
> be bottom left to top right.
>
> When I go into InDesign, I can horizontal flip the line via the menu options.
> In the reference library there is no mention of this option, how do I flip the
> line in script?
This function is missing in AppleScript, so I'm guessing it was overlooked
on Windows too. The workaround is to script the path of the resulting line.
In AS, it would be like this:
tell application "InDesign 2.0.1"
tell document 1
set myLine to make graphic line with properties {geometric bounds:{"2p",
0, "10p", "20p"}}
set entire path of path 1 of myLine to {{"2p", "10p"}, {"20p", 0}}
end tell
end tell
--
Shane Stanley, sstanley@myriad-com.com.au
Technical Details
Message-ID:
<B9F91FD2.43A8C%sstanley@myriad-com.com.au>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-06!sn-xit-08!sn-xit-04!supernews.com!newshosting.com!news-xfer1.atl.newshosting.com!nntp-relay.ihug.net!ihug.co.nz!newsfeed.media.kyoto-u.ac.jp!newsfeed01.sul.t-online.de!t-online.de!WebXReferences:
<1de69327.-1@WebX.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,c927e2e300f0f960 X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2002-11-13 15:18:07 PST From: Shane Stanley <sstanley@myriad-com.com.au> Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-06!sn-xit-08!sn-xit-04!supernews.com!newshosting.com!news-xfer1.atl.newshosting.com!nntp-relay.ihug.net!ihug.co.nz!newsfeed.media.kyoto-u.ac.jp!newsfeed01.sul.t-online.de!t-online.de!WebX Newsgroups: adobe.scripting.indesign Subject: Re: Horizontal Flip on a Line Object Message-ID: <B9F91FD2.43A8C%sstanley@myriad-com.com.au> Date: Wed, 13 Nov 2002 14:39:31 -0800 References: <1de69327.-1@WebX.la2eafNXanI> Lines: 32 User-Agent: Microsoft-Outlook-Express-Macintosh-Edition/5.0.6 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit