Hi
I’m trying to add drop shadows to an object (happens to be type) and I don’t seem to be able to fathom it.
Any help would be appreciated
TIA
RHB
This works for me. I am pretty new to InDesign so there may well be much better ways to do this. I would create a “object style” much better for making global changes and maintaining consistency.
tell application "Adobe InDesign CS2"
activate
tell document 1
apply object style text frame 1 using object style "Drop Shadow 1" with clearing overrides
end tell
end tell
Thanks for the reply, but my problem is that I have to start with a virgin document, so I have to create the object style, and I can’t seem to set the drop shadow in it either.
It looks like object styles are scriptable this appears to work:
tell application "Adobe InDesign CS2"
activate
tell document 1
set Object_Style to make new object style with properties ¬
{name:"Drop Shadow 1", based on:"[None]", enable fill:false, enable stroke:false, enable stroke and corner effects:false, enable transparency:false, shadow blend mode:multiply, shadow blur radius:1, shadow color:swatch 3, shadow mode:drop, shadow noise:0, shadow opacity:30, shadow spread:0, shadow x offset:1.5, shadow y offset:1.5}
apply object style text frame 1 using object style "Drop Shadow 1" with clearing overrides
end tell
end tell