Re: Get text from quark like xpress tags
Re: Get text from quark like xpress tags
- Subject: Re: Get text from quark like xpress tags
- From: Shane Stanley <email@hidden>
- Date: Tue, 11 Sep 2001 08:23:24 +1000
On 11/9/01 6:34 AM +1000, Jeff Horton, email@hidden, wrote:
>
Is there a way, besides saving the text box contents to a file, to set a
>
variable to the text of a particular paragraph, but show the Xpress tags?
>
>
My problem is when I pull the following line from the box it looks like
>
this:
>
>
"AVE 04060 White 3122x17162 1 Across 5000 BX"
>
>
When in fact the 1/2 is a fraction and the 7/16 is also a fraction, so when
>
I input it back into a text box, it of course looses its superior and
>
superscript tag.
>
>
But... If I can get it like: (saved out as xpress tags to file)
>
@08-ChtBody:<cK>AVE 04060 White 3<V>1<$><V->2<$>"x1<V>7<$><V->16<$>"
>
1 Across <\f>5000 BX
>
>
The I preserve my settings of each character in my variable.
You have to go via a file, but it's no big deal:
set tempPath to (path to temporary items) as text
tell application "QuarkXPress 4.11"
set import styles to true
save story 1 of current box in file (tempPath & "x") as "TEXT"
set story 1 of current box to alias (tempPath & "x")
end tell
--
Shane Stanley, email@hidden