🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #16496

Re: [AS] Choosing import options when importing MS Word file

#16496
From: tkuypers
Date: Wed, 10 Sep 2003 18:37
49 lines
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>&quot;Jay Fraser&quot; &lt;jayfraser@yahoo.com&gt;<BR>
<B>Reply-To: </B>&lt;folder.eea52bc@adobeforums.com&gt;<BR>
<B>Date: </B>Wed, 10 Sep 2003 11:33:09 -0700<BR>
<B>To: </B>&lt;adobe.scripting.indesign@adobeforums.com&gt;<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>
&nbsp;&nbsp;[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 &nbsp;&quot;WordRTF Preferences&quot; in the scripting dictionary, and it applies to RTF<I> and </I> Word files, so if you set &nbsp;that preference to &quot;no break&quot;, 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 &quot;InDesign 2.0.2&quot; <BR>
&nbsp;&nbsp;&nbsp;&nbsp;set myPageBreak to page break <BR>
&nbsp;&nbsp;&nbsp;&nbsp;set myReturn to return <BR>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;tell active document <BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;set myStory to object reference of parent story of selection <BR>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tell myStory <BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;set theBreaks to (index of every character whose contents = myPageBreak) <BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;repeat with j from 1 to (count of theBreaks) <BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;set theNum to item j of theBreaks <BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;set contents of character theNum to myReturn <BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;end repeat <BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;end tell <BR>
&nbsp;&nbsp;&nbsp;&nbsp;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">&lt;http://www.adobeforums.com/cgi-bin/webx?13@@.2ccd6379/2&gt;</a> <BR>
Replies by email are OK.<BR>
Use the unsubscribe <a href="http://www.adobeforums.com/cgi-bin/webx?280@@.2ccd6379!folder=.eea52bc">&lt;http://www.adobeforums.com/cgi-bin/webx?280@@.2ccd6379!folder=.eea52bc&gt;</a> &nbsp;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!webx
References: <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