🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #16497

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

#16497
From: Jay Fraser
Date: Wed, 10 Sep 2003 18:33
24 lines
1565 bytes
Duh, sorry. I answered that like it was a regular InDy question, not a scripting question.

I looked at "WordRTF Preferences" in the scripting dictionary, and it applies to RTF and Word files, so if you set that preference to "no break", it should work.

If you want to do a search and replace after the import, you can do something like this:



tell application "InDesign 2.0.2" 
	set myPageBreak to page break 
	set myReturn to return

	tell active document 
		set myStory to object reference of parent story of selection

		tell myStory 
			set theBreaks to (index of every character whose contents = myPageBreak) 
			repeat with j from 1 to (count of theBreaks) 
				set theNum to item j of theBreaks 
				set contents of character theNum to myReturn 
			end repeat 
		end tell 
	end tell 
end tell
Technical Details
Message-ID: <2ccd6379.2@webx.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!news-out.visi.com!petbe.visi.com!eusc.inter.net!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:19 PST
From: "Jay Fraser" <jayfraser@yahoo.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!news-out.visi.com!petbe.visi.com!eusc.inter.net!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: <2ccd6379.2@webx.la2eafNXanI>
Date: Wed, 10 Sep 2003 11:33:09 -0700
References: <2ccd6379.-1@webx.la2eafNXanI>
Lines: 27
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit