• 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
Re: Can't set color of a box in Quark 7.5
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Can't set color of a box in Quark 7.5


  • Subject: Re: Can't set color of a box in Quark 7.5
  • From: Eric C Saunders <email@hidden>
  • Date: Mon, 18 May 2009 07:26:59 -0400


"Name of" is the part you are missing.
The following assumes a document open with 2 picture boxes, each having a different color applied.

tell application "QuarkXPress"
        tell document 1
                set x to name of color of picture box 1
                -- set x to color of picture box 1 - WRONG. Gives you a color spec.
                set color of picture box 2 to x
        end tell
end tell

Eric Saunders

Ken Tozier wrote on 05/18/2009 03:07:42 AM:

> Hi
>
> I'm trying to set the background color of a text box in Quark 7.5 and  
> am getting the following error on the word "color"
>
> QuarkXPress got an error: Unknown object type.
>
> Here's the script
>
> tell application "QuarkXPress"
>    tell document 1
>       set x to color spec "Yellow"
>    end tell
>    
>    tell current box
>       set color to x
>    end tell
> end tell
>
> If I manually set the color through the color palette and do
>
> tell application "QuarkXPress"
>    tell current box
>       set x to color
>    end tell
> end tell
>
> Quark gives me a color spec but if I immediately try to set the color  
> to the spec it just gave me, I get the above error
>
> tell application "QuarkXPress"
>    tell current box
>       set x to color
>       set color to x
>    end tell
> end tell
>
> Is this a known bug in Quark 7.5? Is there any workaround?
>
> Thanks for any help
>
>
>
>
>
>
>  _______________________________________________
> 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
> Archives:
http://lists.apple.com/archives/applescript-users
>
> This email sent to email@hidden
This electronic message contains information from MeadWestvaco Corporation or
subsidiary companies, which may be confidential, privileged or otherwise protected
from disclosure. The information is intended to be used solely by the recipient(s)
named. If you are not an intended recipient, be aware that any review, disclosure,
copying, distribution or use of this transmission or its contents is prohibited. If you
have received this transmission in error, please notify MeadWestvaco immediately
at 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:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

References: 
 >Can't set color of a box in Quark 7.5 (From: Ken Tozier <email@hidden>)

  • Prev by Date: Re: Can't set color of a box in Quark 7.5
  • Next by Date: Re: Debug AppleScript Droplet in AppleScript Studio
  • Previous by thread: Re: Can't set color of a box in Quark 7.5
  • Next by thread: Scripting iPhoto to show photo in Events Album
  • Index(es):
    • Date
    • Thread