🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #19923

Re: Creating tables on the fly, Windows InDesign

#19923
From: GeekGod
Date: Thu, 14 Nov 2002 19:14
32 lines
1797 bytes
I currently need to pass the found character style object to another sub to be processed by a _ton_ of code. 

Here's an example... 

Set findstyle = mydocument.CharStyles.item(characterstyle) 
    ' clear out existing data 
    MyIndesign.FindPreferences = idNothing 
    ' setup find style 
    MyIndesign.FindPreferences.characterstyle = findstyle 
    ' clear out existing data 
    MyIndesign.ChangePreferences = idNothing 
    ' get a collection of text objects that have that style applied 
    MyIndesign.ChangePreferences.characterstyle = findstyle 
    Set FoundText = mydocument.Search("", , , "") 
    ' do something to FoundText.Item(X), like: 
    If IsObject(FoundText) = False Then Exit Sub 
    For Each item In mydocument.CharStyles 
        If item.Name = characterstyle Then 
            ' need to assign object to this variable for later. 
            Set mytextframe = item 
        End If 
    Next 

placeitems(mytextframe) 

----- 

With the above noted, how do I assign "mytextframe" to the found textframe object? 

Thanks, 

-GG
Technical Details
Message-ID: <1de68f3a.5@WebX.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-06!sn-xit-04!supernews.com!news.maxwell.syr.edu!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebX
References: <1de68f3a.-1@WebX.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,734b037c90d04195
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2002-11-14 11:40:06 PST
From: GeekGod <geekgod@geekgod.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-06!sn-xit-04!supernews.com!news.maxwell.syr.edu!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebX
Newsgroups: adobe.scripting.indesign
Subject: Re: Creating tables on the fly, Windows InDesign
Message-ID: <1de68f3a.5@WebX.la2eafNXanI>
Date: Thu, 14 Nov 2002 11:14:41 -0800
References: <1de68f3a.-1@WebX.la2eafNXanI>
Lines: 34
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit