Article View: adobe.scripting.indesign
Article #16496Re: [AS] Choosing import options when importing MS Word file
From: tkuypers
Date: Wed, 10 Sep 2003 18:37
Date: Wed, 10 Sep 2003 18:37
49 lines
3652 bytes
3652 bytes
<FONT FACE="Verdana"><SPAN STYLE='font-size:12.0px'>:-D<BR> Thanks, will try that right away!<BR> <BR> Regards,<BR> <BR> Ton Kuypers<BR> <BR> <HR ALIGN=CENTER SIZE="3" WIDTH="95%"><B>From: </B>"Jay Fraser" <jayfraser@yahoo.com><BR> <B>Reply-To: </B><folder.eea52bc@adobeforums.com><BR> <B>Date: </B>Wed, 10 Sep 2003 11:33:09 -0700<BR> <B>To: </B><adobe.scripting.indesign@adobeforums.com><BR> <B>Subject: </B>re: [AS] Choosing import options when importing MS Word file<BR> <BR> A new message was posted by Jay Fraser in <BR> <BR> <B>InDesign Scripting</B> --<BR> [AS] Choosing import options when importing MS Word file.<BR> <BR> Duh, sorry. I answered that like it was a regular InDy question, not a scripting question. <BR> <BR> I looked at "WordRTF Preferences" in the scripting dictionary, and it applies to RTF<I> and </I> Word files, so if you set that preference to "no break", it should work. <BR> <BR> If you want to do a search and replace after the import, you can do something like this: <BR> <BR> tell application "InDesign 2.0.2" <BR> set myPageBreak to page break <BR> set myReturn to return <BR> <BR> tell active document <BR> set myStory to object reference of parent story of selection <BR> <BR> tell myStory <BR> set theBreaks to (index of every character whose contents = myPageBreak) <BR> repeat with j from 1 to (count of theBreaks) <BR> set theNum to item j of theBreaks <BR> set contents of character theNum to myReturn <BR> end repeat <BR> end tell <BR> end tell <BR> end tell<BR> <BR> <BR> <HR ALIGN=LEFT SIZE="3" WIDTH="200">View/reply at [AS] Choosing import options when importing MS Word file <a href="http://www.adobeforums.com/cgi-bin/webx?13@@.2ccd6379/2"><http://www.adobeforums.com/cgi-bin/webx?13@@.2ccd6379/2></a> <BR> Replies by email are OK.<BR> Use the unsubscribe <a href="http://www.adobeforums.com/cgi-bin/webx?280@@.2ccd6379!folder=.eea52bc"><http://www.adobeforums.com/cgi-bin/webx?280@@.2ccd6379!folder=.eea52bc></a> form to cancel your email subscription.<BR> <BR> <BR> </SPAN></FONT>
Technical Details
Message-ID:
<BB853BF6.D37B%tkuypers@pandora.be>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!newsfeeds.sol.net!news.maxwell.syr.edu!nntp.infostrada.it!newsfeed01.sul.t-online.de!t-online.de!webxReferences:
<2ccd6379.-1@webx.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,1c35facc739faa41 X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2003-09-10 11:38:18 PST From: "tkuypers@pandora.be" <tkuypers@pandora.be> Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!newsfeeds.sol.net!news.maxwell.syr.edu!nntp.infostrada.it!newsfeed01.sul.t-online.de!t-online.de!webx Newsgroups: adobe.scripting.indesign Subject: Re: [AS] Choosing import options when importing MS Word file Message-ID: <BB853BF6.D37B%tkuypers@pandora.be> Date: Wed, 10 Sep 2003 11:37:10 -0700 References: <2ccd6379.-1@webx.la2eafNXanI> Lines: 70 User-Agent: Microsoft-Entourage/10.1.4.030702.0 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit