🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #14759

Re: JS beginners help

#14759
From: Peter_Kahrel
Date: Fri, 16 Jan 2004 12:39
15 lines
1238 bytes
Roy,

Do a google search on javascript indesign tutorial
The first couple of things Google finds look promising, but I think you'd be better off buying an introductory book and study that.

As to the debugger, if it says "myText.search().length is not a function", that means that, well, you're doing something wrong. It should be something like this:

found = myText.search("�");
number_of_pounds = found.length;

found is an array with all the objects that consist of the character "�".

Before you attempt to solve the rest of your programming problem, learn Javascript syntax.

Peter
Technical Details
Message-ID: <2ccf45cf.26@webx.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!webx
References: <2ccf45cf.-1@webx.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: f939a,613db9f5b5ffc527
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2004-01-16 05:07:37 PST
From: Peter_Kahrel@adobeforums.com
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!webx
Newsgroups: adobe.scripting.indesign
Subject: Re: JS beginners help
Message-ID: <2ccf45cf.26@webx.la2eafNXanI>
Date: Fri, 16 Jan 2004 04:39:58 -0800
References: <2ccf45cf.-1@webx.la2eafNXanI>
Lines: 20
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit