Object Style issues with Applescript
I'm having two issues with Object Styles in Applescript. First, there's creating the object style...
set mystyle to make new object style of mydoc
tell mystyle
set name to "3rd Party"
set fill color to "Paper"
set stroke color to "Black"
set stroke weight to 0.5
set stroke type to "Solid"
set properties of text frame preferences to {ignore wrap:true, inset spacing:{"1p0", "1p0", "1p0", "1p0"}, auto sizing type:off}
end tell
It does everything except the text frame preferences. I've phrased it every way I can think of but none of the text frame preference settings work.
Second, I can't get it to apply the object style to a text frame.
tell myframe
set applied object style to object style mystyle
end tell
Again, I've tried multiple phrasing options and nothing happens.
Any clues out there?
