Re: formatting and importing text to Quark
Re: formatting and importing text to Quark
- Subject: Re: formatting and importing text to Quark
- From: "Kabbes, Dan-DLI" <email@hidden>
- Date: Wed, 06 Jun 2001 07:22:20 -0400
Scott,
I have used the following method when taking some text from an excel field
and formatting it as I place it into a quark doc. The variable "custName"
has already been filled with text by Excel. You can then place this text at
some position (beginning, end, etc.) of the text box and apply all of the
properties of the text as it is inserted.
tell Application "QuarkXPress 4.11"
activate
make new text at beginning of text box 1 of spread 1 of ,
document 1 with properties {contents:custName, size:18,
font:"AGaramond"}
end tell
I hope that gets you going in the right direction. There may be easier ways
and I hope someone else will chime in.
Dan
>
From: "Scott Saunders, Saunders Fine Art"<email@hidden>
>
Date: Tue, 05 Jun 2001 13:42:16 -0500
>
To: <email@hidden>
>
Subject: formatting and importing text to Quark
>
>
Hello, any help with this would be greatly appreciated.
>
>
I'm writing a script that should import data from a bunch of FileMaker
>
fields, string them into sentences and then put those into one large Quark
>
text box. Everything is going great, except that I need some fields to be
>
formatted differently than others (bold some, cap some, etc.). The fields
>
will be very different lengths from record to record, and some will be
>
different numbers of paragraphs (ruling out "set paragraph 5" methods).
>
>
Is there a way to place text into a box, format it, then add text after
>
it? Or pre-format it? Or something? I'm stuck.
>
>
Thanks in advance,
>
Scott Saunders