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 23:07:11 -0700
Hi Chip,
This message actually the results of an ongoing thread that referred
to setting the keyword with a variable, pulled from a database. I want
to set the justification based on the database value which is retrieved
as a string value at a point earlier in the script, not within the
QuarkXpress tell block. So I don't have the luxury to be able to set
the value as a keyword, as it will vary. So sure, your example works
because the value is hard-coded and compiles as a keyword, but in my
application, it won't work.
Thanks though!
Steve
On Apr 6, 2004, at 8:20 PM, Chip Howland wrote:
On Apr 6, 2004, at 9:04 PM, Lists <email@hidden> wrote:
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.
This seems like a lot of extra work, since centered is an application
keyword. As long as it's enclosed in an appropriate tell block, it
works without quotation marks:
tell application "QuarkXPress"
set theJust to centered
...
tell text box "Heading1"
tell story 1
set the justification to theJust
end tell
end tell
...
end tell
--
Chip Howland
So act that the maxim of your actions shall become,
through your will alone, a major motion picture.
_______________________________________________
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.