🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #15225

Re: Scripting Text

#15225
From: Olav_Kvern
Date: Fri, 12 Dec 2003 19:43
18 lines
1170 bytes
Kris, Dave--

I'm confused. I thought Kris was asking how to script the selected text frame, not how to find a given paragraph style. Right?

If so, something like this would work:



tell application "InDesign CS" 
    set myTextFrame to item 1 of selection 
    --...do something with the frame. 
end tell

If text is selected, or if a text insertion point is active, it's a little bit more complicated.

Thanks,

Ole
Technical Details
Message-ID: <2ccee47b.3@webx.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-xit-09!supernews.com!diablo.theplanet.net!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!webx
References: <2ccee47b.-1@webx.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,7e44b16a18828e29
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2003-12-12 12:07:57 PST
From: Olav_Kvern@adobeforums.com
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-xit-09!supernews.com!diablo.theplanet.net!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!webx
Newsgroups: adobe.scripting.indesign
Subject: Re: Scripting Text
Message-ID: <2ccee47b.3@webx.la2eafNXanI>
Date: Fri, 12 Dec 2003 11:43:19 -0800
References: <2ccee47b.-1@webx.la2eafNXanI>
Lines: 17
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit