3 Replies Latest reply on Aug 21, 2008 8:15 AM by (Roger_Hussey)

    idLocationOptions error

    Level 1
      This is only a minor point, but it's annoying...I am scripting inDesign in CS2 (for reasons I won't go into here!) and have just come to a point in my script where I need to add a page. Simple, huh?

      If I use the following:

      q=app.activeDocument.pages.add(idLocationOptions.idafter,p)

      (where p is a pointer to an existing page) then I get the error "idLocationOptions is undefined". If I use 1634104421, it works. So, no big deal, I can get the script working. But I consider it a "cop-out" to have to use decimal enumerations, it makes the script harder to read, so this annoys me.

      Anyone have any idea why this is causing an error?

      Thanks.

      Roger