in

Quark Forums

Leopard Problems

Last post 06-07-2008 3:53 PM by samowitsch. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 05-16-2008 2:29 PM

    Leopard Problems

    After upgrading to Leopard today I discovered most of my scripts no longer work. After reading this post I worked out that the problem is in the way colours are assigned to objects. So to summarise in Leopard, this code will crash:

    [code:1:2fdecb6a83]make new picture box at end with properties {color:"Black"}[/code:1:2fdecb6a83]

    To get it to work you need to rewrite it like this:

    [code:1:2fdecb6a83]make new picture box at end with properties {color:color spec "Black" of document 1 of application "QuarkXPress"}[/code:1:2fdecb6a83]

    Also, the color spec "None" no longer seems to be supported. If you want to set the colour of something to "None" you need to use the following:

    [code:1:2fdecb6a83]make new picture box at end with properties {color:null}[/code:1:2fdecb6a83]

    This seems to be the case for anything: text, boxes, frames, gaps etc. So, bear this in mind if you decide to upgrade - you could be there for a while!

    If I come across anything else I'll post it here. Hope this helps.
    Filed under:
  • 06-07-2008 3:53 PM In reply to

    Re: Leopard Problems – color spec "None"

    Yes you are right. I encountered the same problem.
    The only color that could not set correctly with color:null is the color of the blend properties of the generic boxes.
    ScriptDebugger is showing in the tell context window for color none -> color spec "Kein" or color spec "none" depending to the program language setting.

    Regards,
    samowitsch
    ------------------------------------------------------------------------------
    QXP 7.3.1 • Leo 10.5.3 • Intel iMac
Page 1 of 1 (2 items)
Powered by Community Server (Commercial Edition), by Telligent Systems