Re: Quark - setting justification dynamically
Re: Quark - setting justification dynamically
- Subject: Re: Quark - setting justification dynamically
- From: Hans Haesler <email@hidden>
- Date: Tue, 6 Apr 2004 23:16:53 +0200
On Tue, 6 Apr 2004, Lists wrote:
>
set theFrame to "SLDL" -- solid frame, use SPDL for double, etc
>
>
...
>
tell document 1
>
make new text box at beginning of spread 1 with properties {bounds:
>
{"0 pt", "0 pt", "20 pt", "50 pt"}, name: theName, frame: {style:
>
theFrame, width: theWidth}}
>
end tell
>
...
>
>
So this approach opens many doors! The values typically reserved for
>
constants can be set via variables using the correct values.
Hi Steve,
I'm glad that it works. But keep in mind that there are changes with
newer versions. Okay, four-letter strings are still working, but they're
less visible:
FWIW: Using QuarkXPress 5.01 (or 6.1) the 4.11 command...
---
set myJust to justification as string
---
... results in somewhat different strings:
"left", "center", "right", "full", "force"
Not surprisingly, only two of them work when used to set a justification.
With QXP 5.01 and 6.1, to get the usual four-letter strings
you must use 'coerce ... to':
---
set myJust to coerce (get justification) to string
---
The same goes for the style of the frame:
---
style of frame as string
-->"solid"
coerce (get style of frame) to string
-->"SLDL"
Another thing: with QXP 5 your snippet results in a text box whose
frame is... "White".
Unless you explicitly set a color: '... color:"Magenta"...'
This bug is fixed in QXP 6.1
>
Thanks so much!
You're welcome.
---
Hans Haesler <email@hidden>
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.