Re: Quark Paragraph Numbers and other QuarkNewbie Questions
Re: Quark Paragraph Numbers and other QuarkNewbie Questions
- Subject: Re: Quark Paragraph Numbers and other QuarkNewbie Questions
- From: Xandra Lee <email@hidden>
- Date: Wed, 22 Nov 2000 00:27:58 -0500
Shane,
Thanks this is precisely the kind of info I find helpful when I'm first
working with scripting a program.
xandra
>
On 20/11/00 10:28 AM +1000, Xandra Lee, email@hidden, wrote:
>
>
> set oldSize to size of (first character of the selection)
>
> my reduceSize(oldSize, reduceBy)
>
> set newSize to the result
>
> set size of ((first character of every paragraph) of the selection) to
>
> newSize
>
>
You're doing some unnecessary work there. Just use:
>
>
set oldSize to size of (first character of the selection) as real
>
set size of ((first character of every paragraph) of the selection) to
>
(oldSize - reduceBy)
>
>
QXP lets you coerce freely between units and numbers, and if given a real
>
for type size assumes you mean points.
>
>
Als, you don't have to use option-spaces in things like "10 pt" (it's used
>
in results because QXP uses it that way in its palettes, where the smaller
>
type makes a normal space almost disappear).
>
>
--
>
Shane Stanley, email@hidden
Alixandra Leigh
AceDesign
email@hidden
------------------------------------------
Furniture:
><
http://home.rochester.rr.com/alexleighs/furniture/furniture.htm>
Renderings:
><
http://home.rochester.rr.com/alexleighs/interiors/interiors.htm>