Re: Scripting Quark
Re: Scripting Quark
- Subject: Re: Scripting Quark
- From: Stan Cleveland <email@hidden>
- Date: Thu, 09 Mar 2006 10:44:25 -0800
- Thread-topic: Scripting Quark
On 3/9/06 6:49 AM, email@hidden wrote:
> I'm just getting started with scripting Quark. I got this far:
>
> <snip>
>
> I've looked at the dictionary, but I'm hopeless at figuring out how to set
> fon t and style properties.
> Can someone point me in the right direction?
>
> Thanks.
> Jim Weisbin
Here's some code to get you going:
tell application "QuarkXPress"
tell page 1 of document 1
set properties of text of text box 1 to {font:"Helvetica Light", ¬
size:"9 pt", track:"-5", horizontal scale:"80%"}
end tell
end tell
A very useful technique is to query QuarkXPress for the current properties,
bearing in mind that many of them are read-only and can't be changed. You'll
be able to deduce many useful ways to use the properties that are returned.
This works with any object in Quark, not just text, by the way.
tell application "QuarkXPress"
return properties of text of text box 1 of page 1 of document 1
end tell
Stan Cleveland
Color Technology Inc.
Portland, Oregon
"Difficulties increase the nearer we get to the goal." -- Goethe
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden