Skip navigation
Currently Being Moderated

How create indesign using Java Script

Sep 5, 2012 10:36 PM

I am new in indesign and want to create indesign application using JavaScript.

When i use AppleScript to create Indesign Application i use this statement

 

tell application "Adobe InDesign CS5.5"

set myDocument to make document with properties

end tell

 

Indesign Application create sucessfully.

 

How create Indesign Application using JavaScript ?

or what is equivelent statement of ( tell application "Adobe InDesign CS5.5" ) in Java Script.

There are some java scripting example given on forum or in sdk.These all example start with app.

when I debug these java script using ExtendScript ToolKit 3.6 It give error on app (undefined app).I think this app ia application object.

 

How create  indesign application object  app in javascript ?

 

While this script run sucessfully when i put these script in C:\Program Files\Adobe\Adobe InDesign CS5.5\Scripts

 

and to run these script use Scripts panel (choose Window > Utilities > Scripts), then double-click the script name in the Scripts panel in indesign application.But In this case first i start indesign application and then choose Window > Utilities > Scripts then double-click the script name in the Scripts panel.

 

I want to create Indesign Application (instance) using JavaScript.When I run or (debug) my JavaScript in any javaScript tool like ExtendScript ToolKit 3.6 then Indesign application should start, like in Apple Script.

 

 

Thanks

 
Replies
  • Currently Being Moderated
    Sep 5, 2012 11:28 PM   in reply to Bill joy

    add first line

    #target indesign

     
    |
    Mark as:
  • Currently Being Moderated
    Sep 6, 2012 10:33 PM   in reply to Bill joy

    short story.. NO!

     

    however, if you run the script from ESTK, you don't need to copy the script in the "Scripts" folder. Don't know exactly if that's what you want.

     
    |
    Mark as:
  • Currently Being Moderated
    Sep 6, 2012 11:10 PM   in reply to Bill joy

    i understand, and the answer is still No, you cannot.

    VB si a windows global scripting language, runed by the os, like applescript. javascript, or more precised jsx is runned by the Adobe application. So, the app needs to be running.

    you can, i think to make a vb script to initialize the aplicattion and then call (still from VB) a javascript. i think. but since i never used vb, i'm not sure.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points