Newbie Quark Question Cont...
Newbie Quark Question Cont...
- Subject: Newbie Quark Question Cont...
- From: Rob Stott <email@hidden>
- Date: Mon, 23 Jul 2001 13:29:19 +0100
Hi, many thanks to everyone who has offered solutions to my previous query -
I've made some progress but I'm still stuggling with the justification
issue.
I need to be able to right justify text or centre it according to various
conditions set elsewhere. To centre it I'm using;
tell application "QuarkXPress"
tell front document
tell generic box 1
tell story 1
set justification to centered
set style to italic
end tell
end tell
end tell
end tell
...and that works fine. However the bit that should right justify the text
doesn't work, I've tried;
tell application "QuarkXPress"
tell front document
tell generic box 1
tell story 1
set justification to right
set style to italic
end tell
end tell
end tell
end tell
I get the error;
QuarkXPress got an error: Can't set justification of story 1 of generic box
1 of document 1 to right of story 1 of generic box 1 of document 1.
I've tried "rght" and "right justified" in place of the word 'right' but the
same thing happens.
Can anyone suggest anything else I could try?
Thanks in advance
Rob
PS. For the record, I'm running OS 9.1, Quark 4.0 & Script Editor 1.6