Back

If your email is not recognized and you believe it should be, please contact us.

  • You must be logged in to reply to this topic.Login

Creating a new document?

Return to Member Forum

  • Author
    Posts
    • #33628
      Charles Cleveland
      Participant

      I?m new to Adobe scripting with JavaScript. I?m trying to create a new InDesign document, and I?m frustrated. The Adobe Introduction to Scripting says to use the line, ?app.documents.add().? This works with Photoshop, but not with InDesign, at least inside of the ExtendScript Toolkit. So what, if anything _does_ work?

    • #33631
      Harbs
      Member

      app.documents.add() is correct.

      What happens if you try?

    • #33691
      Charles Cleveland
      Participant

      Per the Adobe Intro to Scripting, I entered app.documents.add() into the Javascript Console panel and ran it from there. I got the error message, ?Result: undefined.? As I mentioned, this worked with Photoshop, but not InDesign.

      Since my original post, I discovered that app.documents.add() works correctly, and I get an open document, when I type it into the main edit window and run it from there.

      So for me, with CS6 on Windows 7 64-bit, app.documents.add() works in the main edit window, but not the Javascript Console panel. Is this a glitch, or is it how things are supposed to work?

Viewing 2 reply threads
  • You must be logged in to reply to this topic.
Forum Ads