🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #15794

[vb] Insertionpoint problems,..

#15794
From: Eelko_Heuvelmans
Date: Mon, 17 Nov 2003 13:15
19 lines
1782 bytes
Hi all.

I did some scripting some time ago that inserted serveral words in a textbox with different kerningvalues. But when i looked at it again this morning i didn't work anymore,.. to bad.. ;)

So here is some code that i use: (myTextFrame is a valid TextFrame)

myInsertionpoint = myTextFrame.InsertionPoints.Item(-1)
myInsertionpoint.ParagraphStyle = myDocument.ParaStyles.Item(strParaStyle)
myInsertionpoint.CharacterStyle = myDocument.CharStyles.Item(1)
myInsertionpoint.KerningValue = nKernValue 'as short is set above this code block
myInsertionpoint.TextContents = strTemp2 'holds word to insert


By selecting the insertionpoint "-1" i though i selected the last insertionpoint in my textframe but this does not seem to happen. at least,...
I do select the last one(thus inserting the word at the end of the sentince), but the previous selected insertionpoints kerningvalue is set back to zero! So i looks like it's not working completly correct. :)
How can i set kerningvalues for different insertionpoints within one textframe, How can this problem be solved??

Thanx alot!
Eelko
Technical Details
Message-ID: <2cce6d78.-1@webx.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!webx

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,69ac5ed1b40ef520,start
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2003-11-17 05:37:41 PST
From: Eelko_Heuvelmans@adobeforums.com
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!webx
Newsgroups: adobe.scripting.indesign
Subject: [vb] Insertionpoint problems,..
Message-ID: <2cce6d78.-1@webx.la2eafNXanI>
Date: Mon, 17 Nov 2003 05:15:36 -0800
Lines: 27
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit