Re: Newbie Quark Question
Re: Newbie Quark Question
- Subject: Re: Newbie Quark Question
- From: Hans Haesler <email@hidden>
- Date: Fri, 20 Jul 2001 19:50:58 +0200
On Fri, 20 Jul 2001, Rob Stott wrote:
>
(...) can someone tell me how to change the contents of a text box to
>
(for example) left justified and italic.
Rob,
what version of QXP are you using? This is very important with most issues.
And you should use more nested tell blocks. The lines are shorter.
The code will be more readable and there is less text to type: this way
you don't need to repeat 'of generic box 1 of spread 1 of front document'
over and over again.
Your example would almost work. Insert 'justified' after 'left'
(if you're using QXP 4.11):
---
tell document 1 of application "QuarkXPress 4.11"
tell spread 1
tell text box 1
set properties of paragraph 1 to {justification:left justified, style:italic}
end tell
end tell
end tell
---
The constants are:
left justified
centered
right justified
fully justified
force
They can be replaced by their string-four equivalents:
"left"
"cent"
"rght"
"full"
"frce"
Regards,
Hans
---
Hans Haesler | email@hidden