2013-03-27 46 views
2

我想改变一个颜色插图画家文件从一种颜色另一个继承人我有什么,但它一直说“找不到颜色”我不知道我'米做错了吗?苹果改变插画家的颜色

tell application "Adobe Illustrator" 

      if exists color is equal to "C=0 M=0 Y=0 K=90" then 

        set color to "C=0 M=0 Y=0 K=100" 

      end if 
end tell 

回答

0

看起来它不知道你设置了什么颜色(即填充颜色,描边颜色等)。或者如果你只是设置一个名为'颜色'的变量比你可能需要选择另一个名称(类似myColor),因为这个是保留的

1
tell application "Adobe Illustrator" 
    set allMyItems to every path item of current document whose fill color is {cyan:0.0, magenta:0.0, yellow:0.0, black:90.0} 
    repeat with myItem in allMyItems 
     set fill color of myItem to {cyan:0.0, magenta:0.0, yellow:0.0, black:100.0} 
    end repeat 
end tell