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
Indesign Application create sucessfully.
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.
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.
Sorry there was a mistake in my post i do not want to use ExtendScript ToolKit 3.6 to develop java script
i want to create such java script, that i do not need to put my java script in
C:\Documents and Settings\<username>\Application Data\Adobe\InDesign\Version 7.0\<locale>\Scripts
and when i run my script then indesign application create(start).
Like in applescript there is no need to put the script in /Users/<username>/Library/Preferences /Adobe InDesign/Version 7.5/<locale>/Scripts
Simply create applescript in apple script editor which is inbuild with mac, Indesign Application create(start) sucessfully.
Is there is any other method plz tell me ?
Thanks Vamitul for reply
I want to Know how indesign object "app" is created to start Indesign application on click yes.
For example if i write
var myDocument = app.documents.add();
var myTextFrame = myDocument.pages.item(0).textFrames.add();
myTextFrame.geometricBounds = ["6p", "6p", "24p", "24p"];
myTextFrame.contents = "Hello World!";
in a simple text file and save it with .js extention and to open this double click on this it give error undefined "app".
Source :Microsoft JScript runtime error
So how define "app" or create indesign object ?
i understand, and the answer is still No, you cannot.
Thanks Vamitul for reply
Can I use Adobe InDesign CS5.5 SDK to create Indesign Application instance.
If yes Then plz tell me how use sdk to create indesign application. and which .h file use to create instance.