Article View: adobe.scripting.indesign
Article #17443Re: Best way to CreateOutlines on a range of chars (VB)
From: roberto soto
Date: Thu, 12 Jun 2003 12:19
Date: Thu, 12 Jun 2003 12:19
23 lines
1416 bytes
1416 bytes
Hi Ana,
Try this:
Set myInDesign = CreateObject("InDesign.Application.2.0")
Set myDocument = myInDesign.ActiveDocument
'Assuming that you have a text frame inside the document
'with the text "abcdeefgh....
Set myFrame = myDocument.TextFrames.Item(1)
Set myStory = myFrame.ParentStory
Set myStart = myStory.Search("g")
Set myEnd = myStory.Search("v")
s = myStart.Item(1).Index
e = myEnd.Item(1).Index
Set myRange = myStory.Characters.ItemByRange(myStory.Characters.Item(s), _
myStory.Characters.Item(e)).Item(1)
myRange.CreateOutlines
Roberto
Technical Details
Message-ID:
<1de9809d.0@WebX.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-09!supernews.com!newshosting.com!news-xfer2.atl.newshosting.com!news2.euro.net!newsfeed.freenet.de!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebXReferences:
<1de9809d.-1@WebX.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,d89e5739c365e8ee X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2003-06-12 05:46:58 PST From: "roberto soto" <roberto1soto@hotmail.com> Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-09!supernews.com!newshosting.com!news-xfer2.atl.newshosting.com!news2.euro.net!newsfeed.freenet.de!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebX Newsgroups: adobe.scripting.indesign Subject: Re: Best way to CreateOutlines on a range of chars (VB) Message-ID: <1de9809d.0@WebX.la2eafNXanI> Date: Thu, 12 Jun 2003 05:19:41 -0700 References: <1de9809d.-1@WebX.la2eafNXanI> Lines: 24 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit