I'm having a issus assigning a swatch to a rectangle.
what I need is the have the background color set to paper.
so i have tried:
rec.fillColor = app.swatches.ItemByName("Paper");
rec.fillColor = app.swatches.Item(9); (I loop through the swatches to get index);
rec.fillColor = "Paper"
what I getting is a error saying that :
Invalid value for set properity 'fillColor' Expected Swatch or string but received Swatch
Invalid value for set properity 'fillColor' Expected Swatch or string but received Color
I have no idea whats going on here can anyone help?
I using InDesign CS5 and extension builder 2.0
fixed had to make sure I was using the current document.
rec.fillColor = app.activeDocument.swatches.itemByName("Paper");