title: Scripting Adobe Illustrator. How to apply an effect?
body: <p>My script should select some items and apply Effect->3D->Extrude&amp;bevel to them.
  Which objects and methods should be used?</p>
  
  <p>I use JavaScript in AI CS6.</p>
  
  <p>Thanks.</p>
  
  <p>--
  Update: I need to set the values for effect parameters (angles, depth etc.) in script.</p>
  
  <p>--
  Update 2: Probably it's possible to patch an AI file with needed values for the GraphicStyle, and then open it and apply the style where needed. But I'd like to know if there is less dirty solution.</p>