🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #15235

Re: JS: Made me an object. But :-(

#15235
From: Dave_Saunders
Date: Sat, 13 Dec 2003 02:54
19 lines
1358 bytes
Yep. This code is messy, but much quicker (except when all four objects are changed by the user, in which case it takes an immeasurably short time longer:

myPstyle = app.documents[0].paragraphStyles.item(mySettings.name);
myJust = decypher(Ualign,theAlignNums,theAlignments);
if (myJust != mySettings.justification) {
	myPstyle.justification = myJust;
}
if (Ubalance != mySettings.balanceRaggedLines){
	myPstyle.balanceRaggedLines = Ubalance;
}
if (theParaComposers[Ucomposer] != mySettings.composer) {
	myPstyle.composer = theParaComposers[Ucomposer];
}
mySWL = decypher(Uswj,theSWJNums,theSingleWordJusts);
if (mySWL != mySettings.singleWordJustification) {
	myPstyle.singleWordJustification = mySWL;
}

Dave
Technical Details
Message-ID: <2ccee79b.1@webx.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!webx
References: <2ccee79b.-1@webx.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,1c2af4f369458bdb
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2003-12-12 19:07:56 PST
From: Dave_Saunders@adobeforums.com
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!webx
Newsgroups: adobe.scripting.indesign
Subject: Re: JS: Made me an object. But :-(
Message-ID: <2ccee79b.1@webx.la2eafNXanI>
Date: Fri, 12 Dec 2003 18:54:14 -0800
References: <2ccee79b.-1@webx.la2eafNXanI>
Lines: 21
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit