Article View: adobe.scripting.indesign
Article #14895[VB] Tough nut to crack, generate an index
From: Raymond_Messier
Date: Thu, 15 Jan 2004 21:36
Date: Thu, 15 Jan 2004 21:36
38 lines
2076 bytes
2076 bytes
I need to generate an index in VB Script. So far I know what I have to do, and here is how I was figuring on doing it. I use InData to spray the text in. Around the words I want to index I drop a glyph to mark it. So, what I need to do is to do a search and replace for what is between the glyphs and exchange it with an Index marker of some sort. Has anyone done something like this? Basically what I want to do it... So I would have text that looked like this ~Important Header~ Here is the text for the important header ~A somewhat more important header~ Here is the text for the more important header For each word in document get word if word begin with "~" select from start of "~" to end character (1st instance) remove special_chars insert index entry from selected text end if Next word I cannot figure out how to do the replace or the index entry?! Can anyone help? ========================================= Raymond Messier Software Programmer Practicewares Dental Supply voice...: (916) 638-8020 ext. 3108 fax.....: (916) 638-9307 email...: rmessier@practicewares.com =========================================
Technical Details
Message-ID:
<3A6F59D826A18A439BEAC32F8FAD4A2416F4AF@hq00s10024.practicewares.net>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.tpinternet.pl!newsfeed01.sul.t-online.de!t-online.de!webxShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,9f6ae244800c3853,start X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2004-01-15 13:38:00 PST From: Raymond_Messier@adobeforums.com Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.tpinternet.pl!newsfeed01.sul.t-online.de!t-online.de!webx Newsgroups: adobe.scripting.indesign Subject: [VB] Tough nut to crack, generate an index Message-ID: <3A6F59D826A18A439BEAC32F8FAD4A2416F4AF@hq00s10024.practicewares.net> Date: Thu, 15 Jan 2004 13:36:35 -0800 Lines: 40 content-class: urn:content-classes:message X-MimeOLE: Produced By Microsoft Exchange V6.0.6249.0 Thread-Topic: [VB] Tough nut to crack, generate an index Thread-Index: AcPbr6VVBSte06xsRe6gzLRb7zgJ1w== MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit