creating object with properties
Hi guys!
I'm trying to figure out how exactly creation properties work.
Here is some rectangle:
myFrame = app.activeDocument.pages[0].rectangles.add({
geometricBounds: [0,0,100,100],
fillColor: 'None',
contentType: ContentType.GRAPHIC_TYPE
});
I want to add frameFittingOptions to in while I'm creating whole object, so:
...
contentType: ContentType.GRAPHIC_TYPE,
frameFittingOptions.fittingOnEmptyFrame: EmptyFrameFittingOptions.FILL_PROPORTIONALLY
});
And now I'm reciving error:

Where is my mistake?
Can I pass all properties during creating object?
Thanks for any feedback,
Jarek
