【问题标题】:AppleScript, InDesign errorsAppleScript、InDesign 错误
【发布时间】:2013-03-06 06:47:22
【问题描述】:

我正在尝试使用 AppleScript 将 InDesign 中的现有色板转换为新颜色,但我发现它相当困难。

我收到一个错误代码,因此:

error "Adobe InDesign CS5.5 got an error: Can’t set color of swatch \"CLIENT1\" of document id 12 to {0, 100, 100, 5}." number -10006 from color of swatch "CLIENT1" of document id 12

我用来调整样本的代码是这样的:

set color of swatch "CLIENT1" to c1

任何帮助将不胜感激。快把我逼疯了。

干杯。

【问题讨论】:

    标签: applescript adobe-indesign


    【解决方案1】:

    解决了!对于其他人来说,解决方案是这样的:

    set color value of color "CLIENT1" to c1
    

    享受吧。

    【讨论】:

      【解决方案2】:

      这在 CS2 中适用于 cmyk 色板:

      set color value of swatch "CLIENT1" to {0, 20, 50, 10}
      

      您必须设置所有 4 个值。如果是 rgb 色板,您只需要 3 个值。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2020-09-21
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2011-10-26
        • 1970-01-01
        相关资源
        最近更新 更多