🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #17974

How do I set justification with a variable? (AS)

#17974
From: John Darnell
Date: Thu, 01 May 2003 16:24
26 lines
1394 bytes
Hello fellow scripters:

The story object has a justification property that one sets like this:

-- Note the lack of quotes in this code
tell parent story
set justification to left justified
end tell

I want to store the justification value in a variable and apply it later. I hvae tried this:

set MyJustification to left justified
...
set justification to MyJustification

and this

set MyJustification to "left justified"
...
set justification to MyJustification

Neither works.

How can I set justification with a variable?

TIA.
Technical Details
Message-ID: <1de8f49b.-1@WebX.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!38.144.126.75.MISMATCH!feed1.newsreader.com!newsreader.com!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!lnewspeer01.lnd.ops.eu.uu.net!emea.uu.net!newsfeed01.sul.t-online.de!t-online.de!WebX

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,c4e309fd253cad22,start
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2003-05-01 09:38:14 PST
From: "John Darnell" <John.Darnell@Walsworth.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!38.144.126.75.MISMATCH!feed1.newsreader.com!newsreader.com!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!lnewspeer01.lnd.ops.eu.uu.net!emea.uu.net!newsfeed01.sul.t-online.de!t-online.de!WebX
Newsgroups: adobe.scripting.indesign
Subject: How do I set justification with a variable? (AS)
Message-ID: <1de8f49b.-1@WebX.la2eafNXanI>
Date: Thu, 1 May 2003 09:24:50 -0700
Lines: 28
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit