• 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
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

  • 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
  • Follow-Ups:
    • Re: Why does this filter expression not work? Anyone have an idea? 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 thi
      • From: "Shane Stanley" <email@hidden>
  • Prev by Date: Re: unicode to ascii (not MacRoman)
  • Next by Date: Re: unicode to ascii (not MacRoman)
  • Previous by thread: Re: get current system volume / Again
  • Next by thread: Re: Why does this filter expression not work? Anyone have an idea? 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 thi
  • Index(es):
    • Date
    • Thread