indesign question : transparent fill and stroke

I’m working on a script that imports eps files into an indesign document and then export that document as PDF file. So far so good except one thing :

If indesign upon opening has it’s fill and stroke different from transparent (or none), the rectangles created by the script pick up that fill and stroke. Not really what I want.

But I cannot find anywhere the command to set fill and stroke to ‘none’, prior to creating the rectangles.

So right now I need to make sure by hand that fill and stroke are none prior to launching the script. There is got to be a better way.

right now it’s looking like :

tell application "InDesign 2.0.2"
	set myDocument to make document
	set myPageWidth to 900
	set myPageHeight to 330
	tell document preferences of myDocument
		set page width to myPageWidth
		set page height to myPageHeight
		-- set fill color to none (does not work) ???
		-- set stroke color to none (does not work) ???
	end tell
	tell page 1 of myDocument
         -- importing / placing stuff is done here
	end tell
	tell myDocument
		export format PDF type to mypdf using PDF export style "eBook" without showing options
		close saving no
	end tell
end tell

any ideas how to achieve that ?
thanks

Julien,

I don’t see this as a preference either–must have been an oversight considering how wide-ranging the other preference options are.

If you are creating the frame before importing the picture, your best bet is going to be using a “with properties” statement so you can apply the attributes in one event.

If you are just placing the picture directly and letting ID create the frame, you will have to change the attributes of the picture frame afterwards.

Let’s hope this preference is added in InDesign CS!

Ray