illustrator applescripting...

I want to write a few script for illustrator…
but I’m not that into this syntax ( a little problem ha?)
i use to write scrips for ircle long ago… and a few for ichat , but it was awhile ago.

anyway someone can give me a start hints about my scripts ideas? it would be great!

  1. i want to write a script, that go and check layer after anoter and delete the empty layer within illustrator document.
  2. i want to write a script, that will do “paste inside” like freehand does.
    the logic is simple : bring the selected object in front of the “key object” then create clliping mask to the “key object” using the fronted object.
    i wrote key object because i suppose i have to identify 2 objects for illustrator for this proceeder… and identify which is the mask and which is the masked :slight_smile:

thanks a lot!