🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #14522

Re: [JS] Copying a small string to memory (and deleteing it)

#14522
From: Roy_Marshall
Date: Tue, 27 Jan 2004 16:40
11 lines
1057 bytes
That worked, although I dont see why I cant put a constant in the second parameter instead of a variable.

Anyway, myNewPos works on the same basis, but this doesn't:
myStart = myString.indexOf("\t",2);
myEnd = myString.indexOf("\t",myStart+1);
myNewPos = myString.indexOf("\t",myEnd+1);
myString.characters.itemByRange(myStart,myEnd).move(LocationOptions.atBeginning,myNewpos);

hmm.....

Roy
Technical Details
Message-ID: <2ccf9ac5.5@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: <2ccf9ac5.-1@webx.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,47d76c5f53276933
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2004-01-27 09:07:55 PST
From: Roy_Marshall@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] Copying a small string to memory (and deleteing it)
Message-ID: <2ccf9ac5.5@webx.la2eafNXanI>
Date: Tue, 27 Jan 2004 08:40:38 -0800
References: <2ccf9ac5.-1@webx.la2eafNXanI>
Lines: 13
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit