Re: Quark - setting justification dynamically
Re: Quark - setting justification dynamically
- Subject: Re: Quark - setting justification dynamically
- From: Lists <email@hidden>
- Date: Tue, 6 Apr 2004 10:25:47 -0700
Hi Hans,
This works:
set theJust to "cent"
...
tell text box "Heading1"
tell story 1
set the justification to theJust
end tell
end tell
...
Further, I've been able to lookup all the relevant constants I've
needed so far as Apple Event 4-letter codes using Script Debugger's
AEPrint in the results window.
...
tell text box "Heading1"
return style of frame
end tell
...
returns "SLDL"
Then:
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. I haven't
tried EVERYTHING of course, but so far, I have not had any problems.
This certainly reduces the AppleScript code substantially when
virtually the entire document is database generated. My values for
these properties can be stored as the appropriate 4-letter codes and
then it's a simple variable assignment to have the desired effect.
Thanks so much!
Steve
On Apr 3, 2004, at 12:02 PM, Hans Haesler wrote:
On Fri, 2 Apr 2004, Lists wrote:
(...( I will give the four-letter options a
try and am more than happy to use that route if it works!
Steve,
please keep us informed (although I'm sure that my solution,
the _direct_ approach, using a variable -- and not fiddling with
an if/else test -- will work).
---
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.
_______________________________________________
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.