Publi-Script Forums

Applescript / Javascript => Quark XPress scripting => Topic started by: mbornbach on March 23, 2017, 02:04:46 PM

Title: Removing Paragraph Breaks
Post by: mbornbach 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
Title: Re: Removing Paragraph Breaks
Post by: Jean-Marie Schwartz 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/ ?)