🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #16189

Re: [AS] Get contents of text frame - with style?

#16189
From: James_Naylor
Date: Wed, 08 Oct 2003 08:06
65 lines
3912 bytes

Thanks Dave,<o:p></o:p>

<o:p> </o:p>

I would like to get at the style because I am exporting stories as XML (kind of) and would like replace bold and italic text with <emphasis> tags, etc.<o:p></o:p>

<o:p> </o:p>

To answer the question I can see forming in your head (!), I am using applescript to get the contents of the text frames, because I only need to export certain parts of the page, and no matter what I do, I cannot get 'export from selected' to work through applescript. I can tick the box in the gui, and export from a selected element fine, but when automating this with applescript, the setting appears to be set to true, but the entire page always gets exported. I gave up months ago!<o:p></o:p>

<o:p> </o:p>

So I get my users to select the (for example) three boxes that make up the story (headline, intro, text) and run a script which reads the xml tags applied, gets the contents of the text frames and makes up an xml file for the article, writing this out to a file server.<o:p></o:p>

<o:p> </o:p>

It all works quite nicely, but if I could get the styling, and convert to xml tags, that would be the icing on the cake!<o:p></o:p>

<o:p> </o:p>

James<o:p></o:p>

<o:p> </o:p>

-----Original Message-----
From: Dave Saunders [mailto:daves@pdsassoc.com]
Sent: 07 October 2003 17:23
To: adobe.scripting.indesign@adobeforums.com
Subject: re: [AS] Get contents of text frame - with style?

<o:p> </o:p>

A new message was posted by Dave Saunders in

InDesign Scripting --
  [AS] Get contents of text frame - with style?.

Why do you want to get it? Why not just get references to it and work on it in situ?

I did write one script where I got the text of paragraphs so I could index them in AppleScript, manipulate them a bit (lose noise words) and sort them along with their indexes, so that could then rearrange the original paragraphs using the reordered indexes.

Generally, though, if I want to operate on the text of a story, I do it in situ.

Dave <o:p></o:p>

View/reply at [AS] Get contents of text frame - with style? <http://www.adobeforums.com/cgi-bin/webx?13@@.2ccdc2e2/2>
Replies by email are OK.
Use the unsubscribe <http://www.adobeforums.com/cgi-bin/webx?280@@.2ccdc2e2!folder=.eea52bc> form to cancel your email subscription.<o:p></o:p>

r============================ DISCLAIMER =============================
This message is intended only for the use of the person(s)
(\"Intended Recipient\") to whom it is addressed. It may contain
information, which is privileged and confidential. Accordingly
any dissemination, distribution, copying or other use of this
message or any of its content by any person other than the Intended
Recipient may constitute a breach of civil or criminal law and is
strictly prohibited. If you are not the Intended Recipient, please
contact the sender as soon as possible.

Reed Business Information Ltd. and its subsidiary companies
Tel: +44 (0)20 8652 3500

=======================================================================
Technical Details
Message-ID: <B6A94FE3F2DBD311B47000204808CB1B0526F9F1@rbiqhsex05.qhs.rbi.gni>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-04!sn-xit-06!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.arcor-online.net!newsfeed01.sul.t-online.de!t-online.de!webx
References: <2ccdc2e2.-1@webx.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,2258dfe830e0f182
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2003-10-08 01:40:07 PST
From: James_Naylor@adobeforums.com
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-04!sn-xit-06!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.arcor-online.net!newsfeed01.sul.t-online.de!t-online.de!webx
Newsgroups: adobe.scripting.indesign
Subject: Re: [AS] Get contents of text frame - with style?
Message-ID: <B6A94FE3F2DBD311B47000204808CB1B0526F9F1@rbiqhsex05.qhs.rbi.gni>
Date: Wed, 8 Oct 2003 01:06:34 -0700
References: <2ccdc2e2.-1@webx.la2eafNXanI>
Lines: 180
X-Mailer: Internet Mail Service (5.5.2653.19)
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit