Re: make a style in Quark 4
Re: make a style in Quark 4
- Subject: Re: make a style in Quark 4
- From: Luca BASSINI <email@hidden>
- Date: Fri, 16 Apr 2004 18:47:10 +0200
Don,
you're right! It seems that we have some problem here ;-) Are u using
Script Editor? When I was testing the code yesterday I was using Script
Debugger. With SD it works...
Luca
On 16/apr/04, at 18:00, Feldman, Don wrote:
Thanks very much,
On my computer with Quark 4.11, Applescript 2.0 and OS10.3.3, I still
have problems with Quark 4. When I try using the line
make new character spec at end with properties {name:"TryChar", +class
CATR;:{size:"14", font:"times"}}
I get the Applescript Error message, "Read-only property cannot be
changed."
However, I have a copies of Quark 5 and Quark 6 on my computer. Either
one completes the operation using the simplier form
make new character spec at end with properties {name:"TryChar",
size:"14", font:"times"}
as you suggested it would, so I can then
make new style spec at end with properties {name:"TryPara", character
style:character spec "TryChar"}
Don Feldman
----------
From: Luca BASSINI
Sent: Thursday, April 15, 2004 5:51 PM
To: Feldman, Don
Cc: email@hidden
Subject: Re: make a style in Quark 4
On 15/apr/04, at 21:46, Feldman, Don wrote:
I'm just curious. Can you write an applescript that makes a Character
and Paragraph style sheet in Quark 4.11 or later? I have something
like the following, which doesn't work in mind.
tell application "QuarkXPress(tm) 4.11"
tell document 1
make new character style with properties {name:"HarveyChar",
size:"14", font:"times"}
make new paragraph style with properties {name:"HarveyPara", based
on:"HarveyChar"}
end tell
end tell
Dear Don,
it's possible to do what you'd like to do... But in your code there
are
some sintax errors ;-)
The right code should be this:
tell application "QuarkXPress Passport> (tm)> 4.11"
tell document 1
make new character spec at end with properties {name:"HarveyChar",
size:"14", font:"times"}
make new style spec at end with properties {name:"HarveyPara",
character style:"HarveyChar"}
end tell
end tell
When you are planning to make a new character style you have to think
of a character spec, when you are planning to make a new paragraph
style you have to think of a style spec...
BTW, you have to point your attention to another thing. When you have
to build a new character spec on QuarkXPress 4.11, applescript
implementation doesn't work as expected... But there is - fortunately
-
a workaround: you can access to the raw event code +class CATR; for
setting the character and text attributes of a character spec.
So this line:
make new character spec at end with properties {name:"HarveyChar",
size:"14", font:"times"}
has to be changed in this way:
make new character spec at end with properties {name:"HarveyChar",
+class CATR;:{size:"14", font:"times"}}
I hope this could help ;-)
Ciao
Luca
_______________________________________________
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.