Quark convert quotes
Quark convert quotes
- Subject: Quark convert quotes
- From: Jeremy sellors <email@hidden>
- Date: Mon, 22 Oct 2001 13:26:54 -0700
My problem is that the quotes are not smart or curly in the resulting text.
--set msgbody to (E-mail body text from Outlook)
tell application "QuarkXPress4.11"
activate
open currentPage --document with text box
set convert quotes to true
set import styles to true
tell document 1
tell text box 1
tell story 1
--I use RegEx Commands here to get rid of odd characters
set newBodyText2 to msgbody as string
set newBodyText2 to REReplace newBodyText2 pattern "" with
"\\"
set newBodyText2 to REReplace newBodyText2 pattern "" with
"\""
set newBodyText2 to REReplace newBodyText2 pattern "" with
"\""
set newBodyText2 to REReplace newBodyText2 pattern "" with
"\\'"
set contents to newBodyText2
set style of every paragraph to plain
set originalBox to contents
set contents to (smartwrap of originalBox) as text --with
convert quotes. I use the SmartWap scripting addition here to remove wraps
--do other stuff
end tell
end tell
end tell
end tell
The e-mail has odd characters in it like ; " as high alert, they are "
and apostrophes appear as comers
Dose any one know what causes this? It only occurs with this one e-mail.
Thanks __Jeremy