Stroke paths filled with a spot White in Illustrator

Hi folks,

Grateful for any help offered to solve this one !

I have an illustrator file with some group items that are filled with a spot color called “White1”.
I want to stroke every item of the group (path and text) that is filled with “White1” with a 0.02mm width stroke, color of “Registration”.

I’'ve tried:

tell application “Adobe Illustrator”
set myDoc to document 1

if the name of spot of fill color of group item 1 of myDoc is "White1" then
	set the stroke color of every path item of group item 1 to {registration:100}
end if

end tell

Where am I going wrong - everywhere probably !!

Help !

Thanks in advance

Hi

Try this:

tell application "Adobe Illustrator"
	set stroke color of every path item of document 1 whose fill color is {class:spot color info, tint:100.0, spot:spot "White1" of document 1} to {class:spot color info, tint:100.0, spot:spot "[Registration]" of document 1}
	set stroke color of words of every text frame of document 1 whose fill color is {class:spot color info, tint:100.0, spot:spot "White1" of document 1} to {class:spot color info, tint:100.0, spot:spot "[Registration]" of document 1}
	set stroke width of every path item of document 1 whose stroke color is {class:spot color info, tint:100.0, spot:spot "[Registration]" of document 1} to 0.159 / 2.834645
	set stroke weight of words of every text frame of document 1 whose fill color is {class:spot color info, tint:100.0, spot:spot "White1" of document 1} to 0.159 / 2.834645
end tell

Caught me of guard this for a while i forgot you have to specify stroke weight when talking about text instead of stroke width doh! it is 4 in the morning though so i guess it can’t be helped.

Hope this solves your problem

Pidge - your a genius !! Now I can sleep at night ! Thanks for your help.