🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #20515

Example (or advise) needed for tagged text export in vbscript

#20515
From: Dirk Rijmenants
Date: Mon, 08 Jul 2002 13:46
29 lines
1893 bytes
I would like to export all text-frames from a document to tagged
text...
(in order to have the text translated and re-injected with 'Place'?)
But I'm new to Indesign and not sure I'm doing it as I should.
The script fragment below stops with: "Unspecified Error" and leaves
me no clue.
Can someone please share his experience with me ?
Thanks,
Dirk
------------------------------------------------------
Dim objInDesign

Set objInDesign = CreateObject("InDesign.Application.2.0")
Set objDocument = objInDesign.Open ("testfile.indd")

intNumberOfTextFrames = objDocument.TextFrames.count
intNumberOfLayers = objDocument.Layers.count
intNumberOfStories = objDocument.Stories.count


For intStories = 1 to intNumberOfStories
	lngStoryID = objDocument.stories.item(intStories).ID
	intNumberOfTextFrames =
objDocument.stories.item(intStories).TextFrames.count
	For intTextFrames = 1 to intNumberOfTextFrames
		objDocument.stories.item(intStories).TextFrames.item(intTextFrames).export
"Tagged-text", "frame_" & intNumberOfTextFrames & ".txt"
	Next	
Next
Technical Details
Message-ID: <3a419d.0207080546.53549598@posting.google.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!postnews1.google.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,3a4a299a4038c90e,start
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2002-07-08 06:47:00 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!postnews1.google.com!not-for-mail
From: dirrij@cogen.com (Dirk Rijmenants)
Newsgroups: adobe.scripting.indesign
Subject: Example (or advise) needed for tagged text export in vbscript
Date: 8 Jul 2002 06:46:59 -0700
Organization: http://groups.google.com/
Lines: 29
Message-ID: <3a419d.0207080546.53549598@posting.google.com>
NNTP-Posting-Host: 212.221.12.30
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: posting.google.com 1026136019 23134 127.0.0.1 (8 Jul 2002 13:46:59 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: 8 Jul 2002 13:46:59 GMT