Author Topic: Removing Paragraph Breaks  (Read 1389 times)

0 Members and 1 Guest are viewing this topic.

Offline mbornbach

  • Newbie
  • *
  • Posts: 34
  • Karma: 0
Removing Paragraph Breaks
« on: March 23, 2017, 02:04:46 PM »
I have this script that combines word files into one file. I then drop that Word file onto Quark and drag it off to the side.
The problem I'm having is that the imported text cuts off after the first paragraph and the rest of the text is overflowing.
I'm trying to figure out how to replace the paragraph break in the code with something that won't cut off in Quark; either by changing something in this script in Word or by making a second script that changes it in Quark.

Code: [Select]
 on open of droppedfiles
with timeout of 1500 seconds
tell application "Microsoft Word"
set new_document to make new document
repeat with afile in droppedfiles
set file_path to afile as string
set filename to name of afile
set paste_range to text object of new_document
set collapsed_range to collapse range paste_range direction collapse end
insert file file name file_path at collapsed_range
end repeat
end tell
end timeout
end open

Offline Jean-Marie Schwartz

  • Sr. Member
  • ****
  • Posts: 441
  • Karma: 6
  • Gender: Male
Re: Removing Paragraph Breaks
« Reply #1 on: March 27, 2017, 03:40:31 AM »
Hi! Have you tried to concatenate doc files via a shell script? (Or am I missing sth?)
This might be helpful too: (and maybe this one:!topic/ ?)
Jean-Marie Schwartz
May the Schwartz be with you :-)

= Mac Pro Quad-Core Intel 2.8 GHz 10 Go 1066 MHz DDR3 Mac OS 10.10.5 QuarkXPress + 2017 Adobe CS5+6 =