text and paragraph properties in QX 4.11
text and paragraph properties in QX 4.11
- Subject: text and paragraph properties in QX 4.11
- From: Alberto Salvagnini <email@hidden>
- Date: Thu, 17 Jan 2002 13:37:26 +0100
Hi all,
I am writing a script converting documents from QX 3.32 QX 4.11. I just
open the old doc and copy all different attributes to the new one:
colors, h and j spec, style spec guides etc.
Style spec are a problem. If I write:
tell application "QuarkXPress Passport 4.11"
tell document "hallo"
make new style spec with properties {name:"01"}
end try
end tell
end tell
This doesn't create a new style spec on document "hallo"
but if I create a new document I find a new style spec with name "01".
If I run the script more times
I get a lot of style specs (more than the running times) and new style
specs I did not create.
What is happening?? If I don't want to get the style specs in a new
document, I must delete the QX preferences...
Also my goal is to get the text attributes of any style spec, but
following happened:
->>this work fine:
tell application "QuarkXPress Passport 4.11"
tell document 1
set x to paragraph attributes of style spec "00"
end tell
end tell
->>but this doesn't:
this work fine:
tell application "QuarkXPress Passport 4.11"
tell document 1
set x to text and paragraph attributes of style spec "00"
end tell
end tell
The Dictionary of QX 4.11 says this:
Properties:
<inheritance> base class -- see this class for additional properties
base style style spec -- style that this style is based on
character style character spec -- for this style
index integer [r/o] -- index of the object
key character plain text -- hot key to invoke this style
key modifiers a list of command/shift/option/control -- modifier keys
name plain text -- name of the style
next style style spec -- paragraphs created after this paragraph will
have this style
paragraph attributes paragraph properties -- for this style
text and paragraph attributes text and paragraph properties -- for
compatibility
I really don't know what I am doing wrong...
Any Idea?
TIA
Alberto
Hamburg ist still wonderful, even without sunshine :-)