Is there an InDesign JavaScript Reference?

As a long time Photoshop scripter, I use the Photoshop JavaScript Reference often. It is a full reference to the Photoshop DOM.
I now need to create some scripts for InDesign and can't find a DOM reference on the Adobe dev site. Does one exists? Or what resources would you recommend to someone who knows ExtendScript but need to learn the InDesign DOM?
Thanks,
Mike

Hey thanks Kasyan!
For all intents and purposes, it contains exactly the same information as shown in the ESTK Help menu -- if I did my job well, that is. It's just presented in a friendlier format, and has lots of extra hyperlinks. And it's CS3/CS4 purple!
The HTML version is adequate, but the CHM version really shiness -- at least, when viewed with a good HTML Help viewer. Fairly recent Windows viewers allow both indexing and a full text search, which makes life for the occasional scripter far easier.
I am very impressed with Robin Lu's Mac OS X viewer iCHM. It's as good as Microsoft's, apart from one tiny error; it doesn't properly shows all UTF8 encoded characters (fortunately, there aren't that many of these in the help text, so therefore it's just a mild nuisance). A must-have for all Mac users.
A good resource for starters are Adobe's own guides at http://www.adobe.com/products/indesign/scripting/ (click the Scripting Resources button)
The Scripting Guide PDF , for example, contains lots of useful snippets for common tasks.

Similar Messages

  • [JS,CS3/4] ANN: JavaScript Reference Guide

    Looking for the JavaScript Reference Guide for CS3 or CS4? Adobe no longer offers separately downloadable documents, as they did for previous versions; instead, it's all integrated in the ExtendScript Toolkit Editor. Just look under 'Help', then choose a program. Not using the ESTK? Or perhaps you just want a prettier display ... :-)
    So I reformatted the reference guides into fancy HTML, and I was even able to wring some additional information out of it, such as more comprehensive hyperlinks, a full index, and -- the best feature! -- a visual Hierarchy of each object and its place in the application.
    The HTML version works with any web browser, but full text searching may be difficult. Windows users are advised to download the CHM (Compiled HTML) version, which offers free full text search, as well as a comprehensive Table of Contents and an index.
    Available for CS3 and CS4, from http://www.jongware.com/idjshelp.html
    "You can copy it but you cannot top it."

    There is no limit of improvement, isn’t it?
    I'm rapidly approaching the limits of XSLT. I thought it a good idea to insert both JS Base guide and ScripyUI into the main reference guide. Unfortunatly, when I did, generating the links, contents, and index broke spectacularly. So I decided to cheat and just paste the XML source files together. Now some objects are duplicated, courtesy of the ScriptUI (Window, Button, Panel .. maybe some more). I decided to just append "(SUI)" to those names.
    Fortunately, there are two enhancements to be savoured as well:
    A version number :-) It's at the bottom left of each page
    The 'any' classifier is now written out in full, with the acceptable values. For example, "Swatch merge (with: {Array of Swatches | Swatch | String} )" instead of just "(with:any)"
    The CS4/CHM version on the web page is updated; the HTML version will follow some time later.
    [Edit] It's now some time later, the CS4 HTML version is updated, and the CHM version as well. The version number has gone from 2.1 to 2.1.1 because of a few boo-boos and slightly more links.

  • InDesign Cross References with DTP's Cross References PRO

    There are already posts all over the forum about how inter-document cross references in InDesign are "fragile" and slow and can cause crashing, which I recently learned the hard way. We tried to live with the slowness and the breaking links, but the show-stopper was that we couldn't export our largest book without InDesign crashing. (The book contains 150+ individual documents.)
    Based on some recommendations, we are now using a trial of DTP's Cross References PRO plug-in for InDesign. I removed all cross references that were created using InDesign's native cross references, and added several new ones using the plug-in. The slowness has gone away and the cross references don't seem to be breaking anymore, but InDesign still crashes when I try to export our book. DTP's support people insist that their plug-in should be able to handle large books, unlike InDesign. (And I've heard very good things about their support.) Is it possible that our files and/or book are corrupted from when we had the native InDesign cross references? Has anyone switched from native InDesign cross references to DTP cross references?

    I don't think it's been determined if you have the latest ID update for your version of ID? BTW, which version are you using?
    Where is the "too many files open" message coming from? Operating System (which?) ID? What's the exact message? A screen shot would help. Back in the days of DOS and early Windows, there were commands to set the number of permitted files open at once. Not sure how to do it in modern OSs. If it's an ID message, perhaps someone's got a suggestion.
    Some folks on the forum like to see crash files so they can try to analyze them. Search Google for terms like "adobe forum indesign pastebin" without quotes to find some of those postings and learn how to send your crash report files there, and look at the names of those who volunteer to analyze the files.
    I was thinking that two book container files that hold the same total number of files in the original single book might lighten the processing load and perhaps avoid a crash. With some work, I think it's possible to get the pagination and other numbering schemes, and x-refs to emulate a single book. I think that this is different from exporting half the files from one book, then the other half. It's not tested, just a thought. One other thought is to remove one file at a time from the book, starting at either the beginning or end, and export, until you find the maximum number of files that succeed consistently. Then try from the other end, to see if the crash happens with the same number of files, or perhaps same number of pages, or even, perhaps, at the same page. Perhaps the number of cross-references in the content is related to the crash. Again, just brainstorming.
    You might explore with DTPTools support whether they'd want to see your crash files, to determine if the problem traces to their plug-in. Also, perhaps they'd like to look at your whole project - if it's permissable with your company or client, to see if DTPTools' techs can reproduce the crash.
    erin.miska wrote:
    We've actually never had the InDesign files open while exporting the book and never had a problem. Just to be sure, I tried this. We actually have too many files to open at one time, but I opened as many as I could. Still crashed.
    Can you help me understand your thought behind the second option? What am I troubleshooting by having cross references that point to a document in another book?

  • Indesign Javascript *.pdf in counter

    Hi all
    just want to ask if there is a way  to count pdf files in directory via Indesign Javascript. Thanks for advice.

    Is it possible to run this code in indesign javascript?
    I was able to run Acrobat scripts  only from InDesign 5.0.3 (with Acrobat 8.0.0 on Windows XP SP3).
    Here is an example and here is a thread on the topic.

  • Bridge CS3 JavaScript Reference Guide?

    Approximately two years ago I downloaded the Bridge JavaScript Reference Guide for CS2 as a PDF file (3.5 MB) from Adobe's website. Now I am looking for the respective scripting reference for Bridge CS3---but I cannot find one. I found several User Manuals and Reference Guides for Photoshop CS3, Version Cue CS3 Client and Server and the like ... but no scripting reference for Bridge CS3.
    Obviously the old scripting reference for Bridge 1.0 still is useful ... but there sure are a few changes/improvements/extensions, aren't there? Does someone have an ides where to find Bridge CS3's scripting reference?
    -- Olaf

    Olaf,
    The new scripting docs are part of the Bridge CS3 SDK:
    http://www.adobe.com/devnet/bridge/
    -David

  • [Ann] HTML and CHM version of FrameMaker 12 Javascript Reference

    Just dropping by (I'm not an FM user) to announce that I have made a conveniently browseable version of the Javascript Reference for FM 12, in the formats HTML (lots of files) and CHM (single file in Windows Help format; non-Windows users will need a CHM viewer such as iCHM for Mac). Thanks go to Rick Quatro (http://frameautomation.com) for his support.
    Downloads are available at Indesign JavaScript Help -- scroll down to "New: FrameMaker 12", and the HTML files can also be browsed online at Adobe FrameMaker-12 Object Model JS: Table of Contents (with additional thanks to John Hawkinson for the generous donation of bandwidth).

    Thank you my brother!

  • Interact with indesign javascript through Jtree

    i can display indesign script files in tree view. what is my question is if i click the indesign javascript file i want
    to execute. that means i want to interact with java swing to indesign cs3. How it is possible could anyone tell me.

    Welcome to the Sun forums.
    >
    i can display indesign script files in tree view. what is my question is if i click the indesign javascript file i want
    to execute. that means i want to interact with java swing to indesign cs3. How it is possible could anyone tell me.>About the only way you will be able to get interaction between a JTree and JavaScript is to put the JTree in a JApplet and put that applet in a web page that also references the scripts.
    As far as Java/JS interaction go, look to [Real's HowTo|http://www.rgagnon.com/howto.html] (<- link) and the categories 'Java|JavaScript Interaction' & 'JavaScript|Interaction with Java'.
    Testing will be a hassle, since the AppletViewer does not support Java/JS interaction and browsers cache the classes. Not that applet development is not a PITA to start with.
    And a few points before closing:
    - All sentences should start with a single upper case letter. This helps the reader to quickly scan text, looking for ways they can help. You would not want to make it harder for people who are trying to help, would you?
    - The word 'I' should be always upper case, always.
    - ..and it is JTree, not Jtree. Please be very careful with class names so we can all be sure you refer to J2SE classes, and not some 3rd part class about which we know nothing and do not support.
    Edited by: AndrewThompson64 on Jul 6, 2009 9:19 PM

  • Anyone has indesign cs3 reference?

    Anyone has indesign cs3 javascript reference not guide or tourial?
    Could you email one to me?
    My Email:[email protected]

    Go to ESTK2's Help menu and choose the InDesign CS3 Object Model. In the viewer, choose Application in the Classes window and then look at its properties.
    When you see blue text in the description window, it is linked, so you can click on it for more details if you are interested in further exploration of a related object.
    Dave

  • Is there a way to reference a private variable from one class in another?

    My first class starts off by declaring variables like so:
    class tStudent {
      // declare student name, id, grades 1 & 2, and gpa
      private String fname, lname, g1, g2;
      private int id;
      private double gpa;
      // define a constructor for a new student
      tStudent () {fname=lname=g1=g2=null; id=-1; gpa=0.0;}
      // define methods for manipulating the data members.
      // readStudent: reads information for just one student
    public void read (Scanner input) {
          fname = input.next();
          lname = input.next();
          id = input.nextInt();
          g1 = input.next();
          g2 = input.next();
    }And the second class:// tStudentList: for a list of students
    class tStudentList {
      private int nStudents;
      private tStudent[] list;
      // constructor for creating student list
      tStudentList() {
          list = new tStudent[36];
          for (int i=0; i < 36; i++) list=new tStudent();
    // read the individual students into the student list
    public void read(Scanner scan) {
    nStudents=0;
    while (scan.hasNext()) {list[nStudents++].read(scan);}
    // display the list of all students - fname, lname, id, g1, g2 and gpa
    // with an appropriate header so the output matches my sample //output
    public void print() {
    Is there a way to reference the variables in the first class to use in the second? Specifically in the last section of code where I am going to print the list.

    Not without resorting to reflection hackery. If the fields are private (and are supposed to be), then that means "don't allow access to these to outsiders of this class" by design.
    So if you really meant them to be accessible, then don't use private, or provide public accessors for them.

  • I want to find the image tag name from Image layer name InDesign JavaScript?

    I want to find the image tag name from Image layer name InDesign JavaScript?

    Hi,
    You can use following script to fetch image tag name and the layer name on which it lie:
    var imgBox = app.activeDocument.rectangles // fetch all rectangular frames from the active document
    for(var i = 0; i< imgBox.length; i++)
      if(null != imgBox[i].associatedXMLElement )
                var b = imgBox[i]
               alert("Image tag name "+imgBox[i].associatedXMLElement.markupTag.name + "\n exist on layer " + imgBox[i].itemLayer.name)
    Hope this would help you to resolve your problem.

  • InDesign JavaScript "help" file

    I have used Jongware's InDesign JavaScript help files and have really found them essential. I am grateful for his efforts to make these available.
    I am primarily a FrameMaker user and Adobe is going to provide ExtendScript support for the next version of FrameMaker. The FrameMaker object model is shown in the ExtendScript Toolkit CS5 Object Model Viewer. I would like to do something similar to what Jongware did in extracting the data to a series of HTML files. I am having difficulty figuring out where this data is stored. I can't find an XML file that contains the data. I am mainly posting this here because I haven't been able to contact Jongware directly. Thanks in advance for any help.
    Rick

    Oops :-) Yeah to avoid sp@m I don't really want to post my mail addresses on public sites.
    I sent you a P.M., I'm hugely interested in what you are planning!

  • IDCS2 How to make excel automation in Indesign Javascripting?

    Hi all,
    I have an excel sheet with several columns.I need to replace one of the column in the excel sheet with another set of values using (Indesign)javascript.
    Please help.
    Provide me with code snippets.
    Regards
    amu

    >in the excel sheet [...] using (Indesign)javascript
    It seems to me you think that javascript ("InDesign" JS??) can control any application on your computer.
    Not so.
    InDesign has 'generic' support for external programming languages. It can be controlled using JavaScript, Visual Basic for Applications (on Windows), AppleScript (on the Mac), and COM-aware programs, such as C++. The support for this is built-in into InDesign.
    Excel has built-in support for Visual Basic. This probably means you can steer both Excel and ID from within the same VB -- I know it's possible through Word -- but has nothing to do with JS. Or with InDesign's support for JS. Or InDesign Scripting in general.
    So, is it possible with VB? Well, it might be, but you might want to ask that one on a Microsoft forum, or this one:
    >Provide me with code snippets.
    (snip)

  • How to execute the InDesign Javascript from outside in MAC

    Hi All,
    I need to execute the InDesign Javascript from outside in MAC machine.
    Anyone can help me.
    Thanks in advance.
    Regards,
    Ramkumar

    If you just want to imitate double clicking a file, use execute() method, e.g.:
    var myJavaScriptFile = new File("~/Desktop/Test.jsx");
    myJavaScriptFile.execute();
    At the top of your .jsx file type #target indesign to make the script run in InDesign.
    And I want to add to what Harbs said in the previous post: when you use do script command, you can also send parameters and get back values. See DoScriptParameters and DoScriptReturnValues sample scripts from InDesign CS3 Guide Scripts for details.

  • How to run InDesign Javascript without Interruption

    Hi all,
    I want to run InDesign Javascript, while running the script nobody should interrupt. How to do it???
    Thanks in Advance,
    Mahesh

    [Jongware] wrote:
    You might also ask the user to un-plug the keyboard, let the script run, and then plug in the 'board again. (Altho' that might lead to a practical problem: "Remove keyboard, then press any key to continue". I'll leave that to solve for the OP.)

  • Why not create a Indesign Javascripts web library ?

    Hi all,
    I see a lot of scripts passing by in this forum. I thought it would be very helpful to gather them in a library. It could look like a web site like this one for applescript
    http://olivier.berquin.free.fr/indesign/indesign_cs2.html
    We could have a "menu" frame on the left side with common principles (open, create, loop, for, whatever...)
    We could have too a Index on a page with script names associated with general terms like
    Page
    addPages.jsx
    removePages.jsx
    (Don't look at them, they are fake names)
    Maybe it already exists and I would be pleased to hear it (and know how to reach it :-)). But if not, this kind of library would be a very interesting resource.
    The idea is to have a look on existing scripts and aggregate bricks for new one. With time, the library is growing more & more.
    Maybe another Utopia, but I drop the idea.
    BTW, I don't know how to create a site but I guess it could be a very simple one.
    What do you think ?
    Loic

    Welcome on board, I will have a look at 12/13h00 on wiki, come back with news asap.
    Loic
    De :
    xbytor <[email protected]>
    Ã :
    [email protected]
    Envoyé le :
    Mercredi, 19 Novembre 2008, 5h02mn 46s
    Objet :
    Re: Why not create a Indesign Javascripts web library ?
    A new message was posted by xbytor in
    InDesign Scripting --
    Why not create a Indesign
    Javascripts web library ?
    > loic_aigon X yahoo.fr (X is what you know)
    Moi?
    -X
    View/reply at <
    http://www.adobeforums.com/webx?13@@.59b70ae3/7>
    Replies by email are OK.
    Use the unsubscribe form at <
    http://www.adobeforums.com/webx?280@@.59b70ae3!folder=.eea52bc> to cancel your email subscription.

Maybe you are looking for

  • Signature in preview won't drag in.

    Any suggestions on dragging a signature from the signature box into a document in preview?  I can't get it to work.  Other functions such as add text work fine.  loading the signature works fine.  The signature highlights when clicked it just doesn't

  • Error: Could not find a match for... ?

    Hi, I am trying to compile some code using Studio 10/11 which appears to compile cleanly using a bunch of different C++ compilers (xlC, aCC, VC, g++) but is failing using the C++ compiler in both Studio 10 and Studio 11 with: "test.cpp", line 18: Err

  • Hallo can´t find my ultrabeat anymore.. what´s happened where can i find it??

    Hallo can´t find my ultrabeat anymore.. what´s happened where can i find it??

  • Xunit

    In my application, the business logic is written in the page_load function itself and it does not return anything(void). In the page load, web method is called and the object is displayed on the ASP page. In any of these scenarios, no return type met

  • 10.7.2 update and still no thumbnail previews for my .RAW files?

    Well I updated lion to 10.7.2, and also updated iPhoto this evening and was hoping it would fix my .RAW image files not showing up as preview thumbnails in folders. But still have the issue of the .RAW image files being displayed as icons instead of