Re: Quark Xpress 4.11
Re: Quark Xpress 4.11
- Subject: Re: Quark Xpress 4.11
- From: Hans Haesler <email@hidden>
- Date: Sat, 22 Jun 2002 11:14:12 +0200
On Fri, 21 Jun 2002, Michael Sullivan wrote:
>
Any way to script non-standard dashes & stripes?
>
>
Here's what I want to do -- I'm trying to auto generate documents that
>
require a whole pile of non-standard dashes and Stripes.
>
>
From the dictionary it looks like I can't select anything other than the
>
ones that start out defined by default when the app ships.
Michael,
I have a solution, but it works only with frames. When you select
a line box, an error is generated. I have reported this problem to
Scripting Support one year ago...
Apply one of the non-standard dashes to a picture box and run this:
---
tell document 1 of application "QuarkXPress 4.11"
tell current box
style of frame
end tell
end tell
---
The result is a number which you can use when making a new box.
---
...... frame:{width:6, style:24}}
---
Since you need to make line boxes I see only one solution:
Set the styles to any of the standard ones (except "solid"). Then,
either select all boxes and change the style using "Item/Modify..."
or go to "Edit/Dashes & Stripes..." and delete the corresponding
dashes and stripes and replace them with the custom ones.
The deleted dashes and stripes can be appended, again ...
Yes, I know: "... that's just obnoxious!"
[snip]
>
produces a line of the correct kind and width, but the position is *not*
>
what I specified! I have no clue why not, or what's going on.
>
>
Can anyone confirm this odd behavior?
Yes, I can. Scripting line boxes has been getting buggier with each
upgrade of QuarkXPress. With QXP 3.32 there had been some quirks but there
were also workarounds. With QXP 4.11 the result will be different if the
'box shape' is 'line shape' or 'orthogonal line'. And it matters whether
the line box has been drawn from top to bottom or from bottom to top...
I have given up _moving_ line boxes. I delete them and make a new one.
But this "solution" doesn't allow you to apply a custom style.
---
Hans Haesler <email@hidden>
_______________________________________________
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.