Illustrator Scripting

Hi guys,

I’m dabbling with Illustrator scripting (using JS) as a few of my tasks at work as obscenely repetitive.
So… I have a few questions.

  1. Is there a way of detecting whether or not the file your going to save to is open?
  2. Can all the text elements of an AI file be converted to outlines in one go as opposed to looping though each layer and its groups?

That’s all folks! :stuck_out_tongue:
Any responses or tips would be appreciated.


Also, is there a way to get the edit area dimensions (the thick black border) as opposed to whatever the dotted border is?