🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #14966

Re: [VB] Insert more then one string / text into InDesign! How TO???

#14966
From: Jonathan_Hodges
Date: Wed, 07 Jan 2004 18:20
19 lines
1330 bytes
Timo:

I'm sorry, I don't know anything about Visual Basic, but in Applescript you add copy via the insertion point.

For instance:

make text frame with properties {geometric bounds:{1, 1, 2, 2}, label:"Legal"}
			 	tell text frame "Legal"
					 place legalCopy1
                 tell insertion point -1
					 	place legalCopy2
				 	end tell
      end tell

The tricky part for me was discovering that "insertion point -1" was the end of the current block of copy in the text frame ("insertion point 1" is the start and each point from there on in is one character further along the copy block)

Hope that helps until some VB gurus pop in.

--jon
Technical Details
Message-ID: <2ccf3cf3.2@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: <2ccf3cf3.-1@webx.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,f351a5f3b6e6ec7e
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2004-01-07 10:37:55 PST
From: Jonathan_Hodges@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: [VB] Insert more then one string / text into InDesign! How TO???
Message-ID: <2ccf3cf3.2@webx.la2eafNXanI>
Date: Wed, 7 Jan 2004 10:20:22 -0800
References: <2ccf3cf3.-1@webx.la2eafNXanI>
Lines: 24
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit