- From: Michael Johnston <email@hidden>
- Date: Fri, 4 Mar 2005 16:15:40 +0100
Hmm, doesn't work for me -- even just the filter doesn't work by
itself. Gives a "descriptor type mismatch" error.
I had discovered that earlier, when doing other things with colors. I
think it is because Quark tries to do this automagic coercing of string
color names to color specs, which ends up causing more problems than it
solves.
In any case, I have discovered that looping through the results of the
filter expr. and setting each object's color is nearly as fast as doing
it in one statement when you use quark's "do script" to run the loop.
Michael Johnston
Planetactive
On 2-Mar-05, at 11:23 PM, Shane Stanley wrote:
On Wed, 2 Mar 2005 13:25:53 +0100, Michael Johnston wrote:
WHY???
any reason other than the usual reason (Applescript is the spawn of
satan).
Yes -- it hasn't been implemented properly by the application.
The workaround is to avoid the indirect "name of color" and filter
directly by color. Something like this:
tell application "QuarkXPress"
tell document 1
set theRed to object reference of color spec "Red"
set color of every picture box whose color is theRed to "Blue"
end tell
end tell
Odd, but then life's like that.
(Just filling in while Hans is off skiing...)
-- Shane Stanley <email@hidden>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden
This email sent to email@hidden
_______________________________________________
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