11 Replies Latest reply on Jun 9, 2009 1:38 PM by Roy Marshall

    [JS][CS3] Try - catch(e) question

    Roy Marshall Level 1

      Hi

       

      I am trying to use a try command, with a catch(e):

       

       

      try

      {

      myDocFrames = app.selection;

      }

      catch(e)

      {

      myDocFrames = myDoc.allPageItems;

      }

       

      The Catch(e) doesn't seem to work for me.  I am guessing there is something wrong with my syntax.

      Any help would be much appreciated!

       

      Cheers

       

      Roy