I have made with help from macscript.net a script wich converts a word document to Plain text with TextEdit. Everything seems fine. But on importing the fle in Quark, i 'm missing the line feeds.
Copying the content to the clipboard and paste it in Quark is working perfect. But saving the file en import in Quark goes wrong.
What is hapening with the carriage returns (CR)???
try this code, this code will ask you which textfile you want to import, you can even select more than one file. It’s for QXP4.11. Maybe it works for all versions, i don’t know.
set theFold to "MAC_HD:Desktop Folder:" -- or whatever your base folder is
set theList to (choose from list (list folder (theFold)) with multiple selections allowed) --remove "choose" if you know
repeat with i in theList
set theFile to (theFold & (i))
set theText to (read file theFile)
end repeat
tell application "QuarkXPress Passport™ 4.11"
activate
set properties to {import styles:true}
tell document 1
set story 1 to theText
end tell
end tell
It works for me, but remember: only for SimpleText formats, if you want to import “.docs” or something drop me a line…