Indesign document read with Extend Script

Hi, I am very new to indesign,
I have given a task, to read indesign .indd file with Extend Script. The details are,
I have one indesign doument, say 'Test.indd'. I want to access that document usiing javascript,
and I want to know how many pages are there, how many textFrames in one page, like this.
Is it possible with Extend Script? If yes, Can you tell me how we can acheive that?
I searched with google, bt I have not found any clue regarding to this
Thanks,
Shridhar

It's better to ask at Indesign Scripting forum
http://forums.adobe.com/community/indesign/indesign_scripting?view=discussions

Similar Messages

  • Will my version of OSX affect opening an InDesign document created with a newer version of OSX?

    Can anyone using InDesign CC tell me if someone using a new version of OSX will prevent you from opening their file? I have my CC products updated and have had a few issues opening some documents....assuming the problem is with my OSX version???

    ID files are not backward compatible (though the latest releases of CC, subscription versions of CS6 now use a cloud service to transparently make a .idml file that will open automatically when you try to open a file from a newer version). OS should not be a factor unless you upgrade the OS after installing the applications, then ID can get finicky.

  • Indesign document PDFs with Black outline around pages ... and ...

    Hi guys
    I have posted this problem in the acrobat section but have thought it could be an indesign issue also.
    Basically I am PDFing an InDesign CC document with crop and bleed for a printer.  For some reason, on some pages, it adds a black/grey outline to pages, and in some cases seems to crop the page so there is no bleed.
    Any thoughts?  Original post with image can be seen here: PDF has strange black outline at printers end?
    Thanks

    Thanks for the reply Rob.  This is not the case - I know this as other pages in the document have there bleed correct (5mm all around).  I have resolved the black outline issue, but now have this bleed issue.  On my screen the PDF looks fine but for some reason when the printer opens it, they do not get the bleed on the left edge!
    Thanks

  • How to read with a script in LDAP Active Directory

    I there anyone have a perl/XML script for free download whitch used to search and read contact in LDAP directory.
    Our company not chose the operation witch consit to point CM on Active Directory ,they prefers to write or find script perl/XML to do that.
    Is it possible??
    thanck you for your help

    I am interested in the script that you created too. I have some LDAP books on the way and will try to learn scripting but I have no experience in it and any little push in the right direction would be much appreciated. We are trying to integrate AD with CCM which we did with CCM 4.0.2 but now the Directories button does not work, which we new it wasn't going to, but they want me to create several menu listings say
    1.
    2.Standard Cisco Missed, Placed and Received Calls
    3.
    4. Corporate that will automatically search the entire AD.
    5. This will search only in OU X
    6. This will search in only OU y
    7.
    8. This will search only in UN to the Nth
    If this is possible I would be in your debt if I could just get a sample to give me a push in the right direction.
    Thanks
    My e-mail address is [email protected]

  • Finding then combining content from several indesign documents in one document

    Hi everyone,
    I wonder if someone can help...
    I'm trying to write scripts for indesign server which I want to:
    a) search for,
    b) pick out, then
    c) put together content from one or many indesign documents into a template on the server starting at a pre-defined point in the template. 
    After that we produce a pdf of the document to pass on / do whatever. I've got so far with the scripting documentation but I'm stuck!  This is what I've done so far:
    1/ create a document template with a script
    2/ add text elements to the document template (header and footnote, title,       body text i.e. intro and data, and the contact details)
    3/ add text / content from another indesign file into this       document (so far only done it with a .txt file) ...
    ... I'm stuck on the indesign documents at the moment.  I have       looked at various options, the most appropriate way I can see in       the manuals to get content from one document to another is by       duplicating.  My understanding is to do this you have to target the text in the source       document, duplicate it and then add it into a text frame on the       target document.  It's the targettting of the text and surrounding       elements in the source document I'm battling with. 
    any ideas on how I go about this effectively? 
    Any help and advice appreciated!

    The story so far...
    I've added the code kindly provided by getZinger (thanks again!) and am now stuck on the next stage, .  I've commented the code where I'm having problems, and essentially have two key issues to resolve:
    1/ how I get the documents to be placed one after the other, avoiding the overlay I get on the first insertion page.
       (I am using a fixed value as an insert point as the template I'm using will always have inserts starting on page 3).
    2/ how I access the pdf's I want to insert from a location other than C:\Users\Whoever\Documents\
    try{
    for(myCounter = app.documents.length; myCounter > 0; myCounter--){
    app.documents.item(myCounter-1).close (SaveOptions.no);
      myDocument = app.open(File("C:/.../template.indd"));
      myPDFFiles = ["pdf1.pdf","pdf2.pdf","pdf3.pdf"];
    insertPdf();
    function insertPdf(){
    //I've gone for a static number here as the datapage in the skeleton doc  is page 3.
    //This seems to result in some of the pages being placed on top of each  other :-(
        var myPage = myDocument.pages.item(2);
        /*var myPageNames = new Array;
        //Get the names of the pages in the document
        for(var myCounter = 0; myCounter < myDocument.pages.length;myCounter++){
            myPageNames.push(myDocument.pages.item(myCounter).name);
        var myPDFSet = File("C:/Users/Simon/Desktop/Mexico.pdf");
        for(myIndex=0;myIndex<myPDFFiles.length;myIndex++){
        myPDFSet = File(myPDFFiles[myIndex])
        myPlacePDF(myDocument, myPage, myPDFSet);
        myDocument.exportFile(ExportFormat.pdfType, new File("C:/.../test_insert.pdf"), false);
        myDocument.close(SaveOptions.no);
    }catch(e) { myDocument.close(SaveOptions.no); }
    function myPlacePDF(myDocument, myPage, myPDFSet){
    var myPDFPage;
    app.pdfPlacePreferences.pdfCrop = PDFCrop.cropMedia;
    var myCounter = 1;
    var myBreak = false;
    while(myBreak == false){
    if(myCounter > 1){
    myPage = myDocument.pages.add(LocationOptions.after, myPage);
    app.pdfPlacePreferences.pageNumber = myCounter;
    //the files seem to be automatically placed from C:\Users\Whoever\Documents
    //I need to change this to accept a different file path somehow but I  don't know how
    //this is why the myPDFFiles array only has filenames at the moment
    myPDFPage = myPage.place(File(myPDFSet), [0,0])[0];
    if(myCounter == 1){
    var myFirstPage = myPDFPage.pdfAttributes.pageNumber;
    else{
    if(myPDFPage.pdfAttributes.pageNumber == myFirstPage){
    myPage.remove();
    myBreak = true;
    myCounter = myCounter + 1;
    once again, thanks for taking the time to read this, any help greatly appreciated :-)

  • Why do my InDesign documents report my ported plugin as missing?

    I recently ported a plugin from CS4 to CS5, but when I open my old InDesign documents associated with the CS4 plugin, CS5 reports my plugin as missing (I can open the plugin and use it just fine, so it's obviously not missing).
    I have one CriticalTag defined for my plugin, but I haven't changed my persistent data between the two versions in any way that I'm aware.
    Shouldn't Indesign associate my ported plugin with these old documents? And if not, what am I missing?

    What does it look like in ID when you turn on Overprint Preview?

  • Illustrator extend script save() changes file extension

    If I open a PDF in Illustrator, make a change, and save using the menu option or shortcut, the file is saved as expected.
    If I try to use extend script (i.e. app.activeDocument.save(), or .saveAs()), the file extension is renamed to .ai. How do I keep my original filename when saving with extend script?

    Got it working by using .saveAs() with PDFSaveOptions

  • Adobe Acrobat Pro XI document save as PDF with extended Reader Funktions- extended tools aktivation

    Hello, I have create an PDF Document with Acrobat XI with Textboxes to fill in. Also i make an Signbox where my client write her signature with an extern writing tablet.
    It works if I save the Document as PDF with extended Reader Funktions - extended tools aktivation.
    Now I open this document with Adobe Reader and fill in the boxes and the sign.
    I want to save this as an copie, where may client can´t change my fill in the boxes. How can I do this? I have in Adobe Redaer no "save  as copie"
    In Adobe Acrobat Pro XI I have an button save "as copie".
    Can someone help me?

    Hi,
    I am moving your posting at Adobe CreatePDF forum to Acrobat Forum now.
    Thank you.
    Hisami

  • Connect Extends Script Toolkit with InDesign Server

    Hi folks,
    I'm trying to connect my Extends Script Toolkit installed with the InDesign Server CS4 on a XServe Mac with a running InDesign Server thread. This won't work, see screenshots. Any hints on this topic? Are their any log files written by the Extends Script to solve the problem?
    Cheers Tino

    Hi Sheldon,
    With CS4, InDesign Server no longer supports opening PageMaker files. This info is included in the Release Notes. InDesign CS4 will still open them so you could pursue a solution there.
    Regards,
    Jeffrey O'Donald
    Adobe

  • We have an applescript that will batch print InDesign CS6 files from a folder to a laser printer using an InDesign print preset. The script does not work in OS X Yosemite. The script errors out with the print preset. Any thoughts?

    tell application "Finder"
      activate
      set thefolder to choose folder with prompt "Select a Folder with InDesign Files to be Printed" as text
      set thePath to thefolder as text
      set the selected_items to every item of folder thefolder
      if the selected_items is {} then
      beep
      display dialog "Please select a folder with InDesign files before running this script." buttons {"Cancel"} default button 1
      end if
      repeat with aFile in selected_items
      tell application "Adobe InDesign CS6"
      activate
      with timeout of 600 seconds
      set user interaction level of script preferences to never interact
      open aFile
      tell document 1
      tell print preferences
      set active printer preset to "Catalog Pages"
      set page range to all pages
      end tell
      print without print dialog
      close saving no
      end tell
      end timeout
      --might need this delay
      --delay 10
      set user interaction level of script preferences to interact with all
      end tell
      end repeat
      tell application "Finder"
      activate
      display dialog "Batch Printing is complete!" giving up after 5
      end tell
    end tell

    Hi
    After I put a small delay in as shown, your code ran fine, tested on about twenty ID files, using ID CC 2014, OSX 10.10.2
    tell document 1
    delay 0.5   -- delay added
      tell print preferences
      set active printer preset to "Catalog Pages"

  • Save a *.TXT with the Extended Script Toolkit and Photoshop

    Hi guys I need your help to figure this out:
    I like to save the names of all the layers from my Photoshop document into a *.txt file.
    Is this even possible with JavaScript by using the Photoshop and Extended Script Toolkit? There are some suggestions on the internet to use the ActiveXObject, but this only seems to work in combination with HTML and AJAX.
    Thanks for helping,
    Christina

    Take a look at the File Object… You have both read & write methods…

  • Start script automatically after place Word text in indesign document

    I need start a script, automatically, after plece Word text in indesign document...
    It's possible ???

    This is how I'd approach it - it captures a 'place' or 'paste' of a blob of text. It is not perfect - it will also 'fire' if you simply copy some text from one frame in the document to an empty frame, but I don't think that would be an issue in most cases.
    Create a page item on the pasteboard; use the Active Page Item Developer palette to set the List of Subjects to * (just an asterisk), and the Event Filter to subjectModified* ('subjectModified' with an asterisk appended). Set the attached ExtendScript to the script shown below.
    I've not tested this heavily - it's only a proof of concept...
    (function(theItem)
      const kKeyForSavedTextLength = "com.rorohiko.savedTextLength";
      do
        var theFrame = theItem.eventSource;
        if (! (theFrame instanceof TextFrame))
          // Not a text frame - bail out
          break;
        var previousTextLength =
          theFrame.getDataStore(
            kKeyForSavedTextLength);
        if (previousTextLength == null)
          previousTextLength = 0;
        if (previousTextLength > 0)
          // Already has text in it - bail out
          break;
        var curTextLength = theFrame.contents.length;
        theFrame.setDataStore(
          kKeyForSavedTextLength,
          curTextLength);
        if (curTextLength == 0)
          // No text in it - bail out
          break;
        alert("Pasted or placed a blob of text");
      while (false);
    (theItem));

  • Would like to create a script for list all elements and structure of an indesign document

    Hello everybody,
    I'm a very beginner in indesign scripting.
    I would like to create a script in order to list all elements and the inner structure of a n indesign document.
    The aim for me is to understand how elements are sorted and arranged into indesign, and be able to find an specific element by its item name.
    The output document could be an xml or txt document with a treeview structure.
    I would like have a rough idea of which kind of javascript code I should use for that.
    Thanks for answers.

    Hi Ossydoc,
    You can use Muse to create such a website. All you need to do is, create links in Muse for the sermons and select  " link to File " in the hyperlink option and link to those Mp3 files.
    Please refer to this screenshot :- http://prntscr.com/4xvdup
    Now, when you publish your site,  Muse would automatically upload those files onto the server and the users would then be able to listen as well as download those sermons using the links on your site.
    Hope this helps
    Regards,
    Rohit Nair 

  • When I open a document in InDesign CC the window extends underneath the panels.

    Prior to CC, InDesign would open my document windows with the right edges of them stopping where the left edge of the panels start. Now it opens them with the windows extending underneath the panels. Any ideas on how to get them to open the old way? It's a minor inconvenience, but it's like a tiny splinter and has been bugging me for a while. Thanks.

    Tried, no dice. Even tried closing all panels, then just opening one (Pages) to see if I could get that right. Nope. :-/
    These screengrabs show the right side after I tried opening a new document. I made the changes with no documents opened.

  • When I print a document with Arabic script in In Design the characters appear in an inverted form, in the opposite direction, while the printer doesn't do this with other software such as Word

    When I print a document with Arabic script in In Design the characters appear in an inverted form, in the opposite direction, while the printer doesn't do this with other software such as Word

    (The small field at the top of questions is to type just a title; the large field is to type your full question in, along with anything else that may help us help you.)
    When you say "print", do you mean the text is correct in your InDesign file? If you export the document to a PDF, is it still correct? Final test: if you print the PDF to your printer (making sure you use the same driver and setting), is it wrong? Then it's your printer driver, trying to be smart when it should not. Locate a Settings dialog where you can switch off options such as this one. Were I a betting person, I'd tell you to look for something called "Auto-correct mirrored documents".

Maybe you are looking for