• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
RE: make a style in Quark 4
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: make a style in Quark 4


  • Subject: RE: make a style in Quark 4
  • From: "Feldman, Don" <email@hidden>
  • Date: Fri, 16 Apr 2004 14:17:01 -0400
  • Thread-topic: make a style in Quark 4

I just tried it again and it worked as written below, which is just the way you originally presented it. I restarted Quark 4.11 and ordinary applescript 2.0. My co worker suggested that maybe I ran it two times and it failed the second time because the tag already existed. I think maybe I made a mistake in the paragraph tag, fixed it when the script failed and ran it a second time without realizing I already created the character tag and that was making it fail.

Then I went on to try it in 5 and 6 which worked.

tell application "QuarkXPress(tm) 4.11"
tell document 1

make new character spec at end with properties {name:"TryAgainChar", +class CATR;:{size:"18", font:"times"}}

make new style spec at end with properties {name:"TryAgainPara", character style:character spec "TryAgainChar"}
end tell
end tell

I'll keep playing with it next week and report if there are any more mysteries!

Thanks,

Don


> ----------
> From: Luca BASSINI
> Sent: Friday, April 16, 2004 12:47 PM
> To: Feldman, Don
> Cc: email@hidden
> Subject: Re: make a style in Quark 4
>
> 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.


  • Prev by Date: Re: Change of file creation date
  • Next by Date: Re: make a style in Quark 4
  • Previous by thread: Re: make a style in Quark 4
  • Next by thread: Re: make a style in Quark 4
  • Index(es):
    • Date
    • Thread