🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #14611

Re: JS undefined properties...

#14611
From: Roy_Marshall
Date: Fri, 23 Jan 2004 16:48
29 lines
1451 bytes
I know the feeling!!

myReturn = "!"; //I changed this so it is easyer to track
myStory			=app.selection[0].parentStory;
app.findPreferences 	= null;
app.changePreferences 	= null;
myPounds		= myStory.search("�");
myPoundCnt		=myPounds.length;

for (i=myPoundCnt-1; i>=0 ; i--)
	{
	myPound		=myPounds[i];
	myPara		=myPound.paragraphs[0];
	myLineCnt	=myPara.lines.length;
	if (myLineCnt >1)
		{
		//alert ("this has " + myLineCnt + " lines")
		for (myLineStep=myLineCnt-2; myLineStep >=0 ;myLineStep--)
			{
			myLine=myPara.lines[myLineStep].contents;
			//alert ("Line is " + myLine);
			myCharCnt = myLine.length;
			alert (myLine[myCharCnt-1]); //this returns a space character
			myLine[myCharCnt-1] = myReturn;
			alert (myLine[myCharCnt-1]); //this SHOULD return a "!"
			}
		}

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

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: f939a,c2ae6c74d069cf9
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2004-01-23 09:08:04 PST
From: Roy_Marshall@adobeforums.com
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!webx
Newsgroups: adobe.scripting.indesign
Subject: Re: JS undefined properties...
Message-ID: <2ccf884d.5@webx.la2eafNXanI>
Date: Fri, 23 Jan 2004 08:48:57 -0800
References: <2ccf884d.-1@webx.la2eafNXanI>
Lines: 29
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit