🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #609

Re: Paragraph Style - Keep Options

#609
From: Marco Lugli
Date: Tue, 10 Mar 2009 10:14
19 lines
994 bytes
Thanks Peter for the information -
I'm trying do make a script to manage the Keep Option property of a paragraph.
Here's my attempt:

function main(){
	var mySelection = app.selection[0];
	if (mySelection){
		myProcessText(mySelection);
	}

	function myProcessText(mySelection){
		mySelection.keepWithNext = 1;
	}
}

But it doesn't seem to work.
Have you got any suggestions?
Thanks
Marco
Technical Details
Message-ID: <59b82b64.1@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!newshub.sdsu.edu!webcrossing
References: <59b82b64.-1@webcrossing.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,c0be6b82988d16c5
X-Google-Attributes: gidf939a,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Marco Lugli" <marco.lugli@ama.it>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!newshub.sdsu.edu!webcrossing
Newsgroups: adobe.scripting.indesign
Subject: Re: Paragraph Style - Keep Options
Message-ID: <59b82b64.1@webcrossing.la2eafNXanI>
Date: Tue, 10 Mar 2009 03:14:17 -0700
References: <59b82b64.-1@webcrossing.la2eafNXanI>
Lines: 20
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit