[Pythonmac-SIG] Illustrator no_color_info problem

Grzegorz Laszczyk grzessnik at interia.pl
Mon Jan 21 23:00:22 CET 2008


Hi.
I have a little problem working with Illustrator objects color.
When I have a list with 4 elements, I can make cmyk_color_info, 3 - 
rgb_color_info.
I'm trying to make no_color_info, but I can't.
It's interesting, because I tried to use example from AI CS3 apple 
script reference, pasted into AS_Translate.
It makes CMYK, RGB but shows error when uses no_color_inf.

This is a code I paste into AS_Translate

tell application "Adobe Illustrator"
activate
make new document with properties {color space:RGB}
make new rectangle in document 1 with properties {position:{200, 500},
width:300, height:100}
set the fill color of the result to {class:RGB color info, red:255,
green:0, blue:0}
make new rectangle in document 1 with properties {position:{150, 550},
width:200, height:100}
set the fill color of the result to {class:RGB color info, red:0,
green:255, blue:0}
delay 1
set the fill color of path item 1 of document 1 to {class:no color info}
end tell

It's an error or I made mistake?

Could you check, does it works?

Greetings
Grzesiek


----------------------------------------------------------------------
Sprawdz, ktore komorki sa najmodniejsze!
Kliknij >>> http://link.interia.pl/f1cd4



More information about the Pythonmac-SIG mailing list