Using a script on an indesign server

I am new to working on an InDesign Server. I have built a template that requires a javascript for alignment issues. What needs to be done so the script is accessed when the file is accessed via the server?

Please see this link,
http://cisco.com/en/US/tech/tk583/tk372/technologies_configuration_example09186a00800949ba.shtml
Regards,
~JG
Do rate helpful posts

Similar Messages

  • 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

  • CS5 Extension Builder and Indesign Server ?

    Hello,
    Is it possible to write an extension with CS5 Extension Builder for Indesign Server? It works fine with Indesign Desktop for me, but I'm ot sure for the Server version. Spend time to search on the web, without results.Just found this note in "indesign_cs5_server_scripting_guide.pdf" : You can use the  ExtendScript Toolkit to create JavaScript scripts explicitly for InDesign  Server, or you can use the Creative Suite Extension Builder (CS Extension  Builder) to develop CS extensions in ActionScript. CS extensions are  Flash-based (SWF) and can potentially work in a variety of Creative Suite  applications.
    Many thanks in advance,
    David

    Hello,
    Thanks a lot for the answer. This is not good news for us, but again, thanks for the answer.
    In few words, we are a leading French software editor (www.perigee.fr). Our software is a database that works with Indesign (using a C++ plugin), and manage pictures, text blocs, tables from PIM & DAM mgt.
    We are working on a brand new software suite that will be based on both Indesign and Indesign Server. We intend to develop the Indesign UI in ActionScript and CS5 Extension Builder.
    On the model side, we need something that works as well on both platforms. We tested several solutions (C++, Javascript) so far but we came to the conclusion that it would be ideal to use ActionScript.
    If there is no solution for AS and Indesign Server, we'll have to mix four programming languages in our solution (Java, C++, ActionScript and some JavaScript). Alternatively we could delay part of our project depending on the availability of AS on Indesign Server.
    We really like ActionScript and CS5 Extension Builder, and hopefully a solution to stay on our preferred languages: ActionScript and Java.
    We also explored the full Java/Corba option but it is not supported on the non-server side. And, again, we believe that ActionScript is the best solution.
    I hope our problem is clearer now.
    Do you see anything we may have missed?
    Thanks in advance for your answer!
    David

  • Can't InDesign Server make a jpg export of a large page? (4000x4500mm)

    Hi guys,
    I don't have InDesign Server installed so thats why I ask here.
    I'm using a solution where an InDesign server should return with a jpg of an InDesign document, but for some reason it doesn't work with this document:
    http://ge.tt/8w1EmaP/v/0
    Can anyone clarify if InDesign Server really has a problem in exporting larger dimensions of if it is just the solution which I'm uploading to, that has a problem?
    Thanks in advance!
    BR
    Ole

    It also depends on the Resolution of the JPG. I just exported a 72 ppi JPG from InDesign desktop. However, it would not export a 2400 ppi JPG (maximum size exceeded).

  • Script for Checking the Server Status

    Hi All,
         I just need the script for monitoring the server status through the WLST.My scenario:I have 2 server in Running State.If any one of the server get failed or in not RUNNING state then i use the script for starting that server automatically.I tried some of the script but it is not working properly .If any one have the sample script please share with me.
    Regards,
    Ove.

    Hi Syed,
    Replication state is very easy to see in 4.x and earlier. The last changenumber in the supplier changelog is visible (on the root DSE IIRC), and each consumer suffix has an operational attribute "copiedfrom" that tells you the name of the supplier, the database generation id, and the last change replayed from the supplier.
    So a script that compares the results of
    ldapsearch -h <supplier> -s base -b "" "objectclass=*" lastchangenumber
    and
    ldapsearch -h <consumer> -s base -b <base_suffix> "objectclass=*" copiedFrom
    will show you if a replica has fallen out of sync. It won't tell you more than how many changes behind the replica is, though, because pre-5.x changenumbers are sequential integers, not timestamps.
    However, the change that corresponds to the changenumber is clearly visible under the "cn=changelog" suffix. So if you look at the change itself you can see the timestamp on it.
    For more info on the status of replication, you should be able to query the agreements on the supplier. Those live under the "Netscape Machine Data Suffix", which you can also find on the supplier's root DSE:
    ldapsearch -h <supplier> -s base -b "" "objectclass=*" netscapemdsuffix
    And of course the error logs will usually tell you if replication is failing outright.
    I may be off on some of the attribute names, but if you do some investigating along these lines, you should be able to figure it out.

  • SSL and indesign server - soap communications.

    Does anyone know if (and how) you could use SSL to talk to indesign server using soap.  The gSoap library (that I believe indesign server uses) has some support but needs compiling to include it, so I'm assuming it isn't included but would like to know for sure.
    Thanks
    Ian

    Hi folks!
    A typical scenario I'll encounter at customers regularly is that they have SSL only until the Webcache in the DMZ , as Jon has described. You could create real end-to-end security. The connection to the OHS in the middle tier and even to the infrastructure can use SSL.
    When you want to have the database connection encrypted you'll need the Adv. Security option. The protocol between the middle tier and your database is usually using SQLNet or JDBC. For these you need the Advanced Security option.
    cu
    Andreas

  • Basic questions on InDesign server

    Hi All,
    I'm studying InDesign server and have some basic doubts which are given below:
    (1) I've already developed using JS/VB.net, can I directly use those tools directly in InDesign server without modifying anything?
    (2) How to practice with InDesign server, since I didn't find any trial version of InDesign server?
    (3) Since InDesign server not having any UI, how we an run, any basic ideas?
    Thanks,
    Praveen

    1. That depends on what you have developed... User interface elements are no good in server code, for example.
    2. I guess the best way would be to become an Adobe partner http://partners.adobe.com/.
    But: there is a trial version if InDesign Server: https://www.adobe.com/cfusion/tdrc/index.cfm?product=indesign_server
    3. InDesign server and desktop are essentially the same. Primarily I would suggest developing on the desktop version.
    Logging to file, and starting InDesign Server with a console open are two ways of debugging on the server.
    Message was edited by: Andreas Jansson. Adding info since I just noticed that there is a trial version of InDesign Server.

  • InDesign server crashes every time when calling deleteEmptyPages in script

    We are evaluting InDesign Server CS6 on a Windows server environment. We have an idml file, sample xml file that is tagged to specific frames inside the idml file and a script file for execution on the server. This script opens the idml file using the app.open api, imports the xml file and export the ID file to a PDF. Because we have table content with variable row count, we are using the smart text reflow functionality. Setting the text preferences with smart text reflow appears to be working but we also want to delete the empty second page when the content is less than a page. So, we also tried using the deleteEmptyPages property document's textPreferences. When this is set to true and the script is executed on the ID server using the sampleclient, the server crashes with the following message. When I do the same thing in the InDesign UI using the preferences options, it works as expected.
    The script looks like below - is this the right way to do it?
    var myInddFile = app.scriptArgs.get("idfile"); //"X:/IDFiles/AutoFlow.indd";
    var myXmlFile = app.scriptArgs.get("xmlfile"); //"X:/IDFiles/deleteme.xml";
    var myOutputOptions = "[Smallest File Size]";
    var myPDFPreset = app.pdfExportPresets.itemByName(myOutputOptions);
    var myDoc = app.open (File(myInddFile), OpenOptions.OPEN_COPY);
    myDoc.xmlImportPreferences.ignoreWhitespace = true;
    myDoc.textPreferences.smartTextReflow = true;
    //myDoc.textPreferences.addPages = AddPageOptions.END_OF_STORY;
    //myDoc.textPreferences.limitToMasterTextFrames = true;
    myDoc.importXML (File(myXmlFile));
    //uncommenting this line causes the ID server to crash
    //myDoc.textPreferences.deleteEmptyPages = true;
    var myOutputFile = app.scriptArgs.get("outputfile");//File("X:/IDFiles/sampleX.pdf")
    myDoc.exportFile (ExportFormat.PDF_TYPE,myOutputFile, myPDFPreset)

    Thanks Harbs. We are looking at full automation and so removing the pages manually is not an option. But I did find a script at InTools http://in-tools.com/article/scripts-blog/script-of-the-day-jan-24-2010/ that helps with automating the removal of empty pages. This script appears to be a nice workaround for server side usage. I used it on my document with multiple column text frames and it is removing the empty page as expected. If there is a better way to do this, let me know. Thanks.

  • Creating a TOC via script on InDesign Server [CS5.5]

    I have been struggling for about two weeks with trying to figure out how to script the creation of a TOC and an index for a book.  I've successfully created the book, and have also been able to create the table of contents, however I cannot place the contents in the book.  From the UI it's simple because it loads up the cursor with the TOC contents.  But in script, it simply provides an array with a single Story object.
    I have no idea how to make the story appear in my document.  Here's my current code:
    var book = app.open("book.indb");
    var doc = app.open("table_of_contents.indd");
    var tocStyle = doc.tocStyles.firstItem();
    var stories = doc.createTOC(tocStyle, true, book, ["1in", "1in"], false, doc.layers.firstItem());
    When I hit that final line, I get the following error:
    Invalid value for parameter 'destinationLayer' of method 'createTOC'. Expected Layer, but received Layer.
    Okay... so, if it's expecting a Layer and I'm providing a Layer - what gives?
    Originally I had figured that I:
    Had to create a TOC document from a template which contains a single text frame that automatically flows from page-to-page (using a master)
    Add the document to the book at the beginning
    Copy the contents of the Story into the TextFrame
    Iterate the Lines collection of the Story, copying the paragraph and character styles for each line
    This works, but it's no longer a TOCStory type.  I would like to maintain the TOCStory type and just have the content flowed into the new document which I add.  This makes sense, logically, but I know that nothing in InDesign is really that logical.  It seems to be a lot of collection manipulations, but I cannot figure out which collections to manipulate.
    The Index.generate() method seems so much more logical because the first argument is where to place the content.  If it were only that simple for the TOC!  If you've had experience doing this, please let me in on the secret...  I don't have access to the menu items so I cannot invoke actions.  Those threads don't seem to apply for InDesign Server (and that makes sense, since it's headless)
    Thanks,
    - Brett

    Hi Brett,
    here is the code that worked for me.
    Michael
    var bk=app.books.add(File("C:/Users/wwadmin/Desktop/testbook.indb"));
    for(i=0; i<5; i++){
    var doc=app.documents.add()
    var page=doc.pages.firstItem()
    var frame=page.textFrames.add({geometricBounds:[0,0,'10in','10in']})
    frame.contents="Hello World!!!!!";
    var style=doc.paragraphStyles.add({name:"Body"});
    frame.paragraphs.firstItem().appliedParagraphStyle=style;
    doc.save(new File("C:/Users/wwadmin/Desktop/doc"+i+".indd"))
    bk.bookContents.add(File("C:/Users/wwadmin/Desktop/doc"+i+".indd"));
    var doc=app.documents.add();
    var page=doc.pages.firstItem();
    style=doc.paragraphStyles.add({name:"Body"})
    tocstyle=doc.tocStyles.add({name:"myStyle"});
    tocstyle.tocStyleEntries.add({formatStyle:style, name:style.name});
    doc.save(new File("C:/Users/wwadmin/Desktop/test.indd"))
    bk.bookContents.add(File("C:/Users/wwadmin/Desktop/test.indd"));
    doc.createTOC(tocstyle, true, bk, undefined, true, doc.layers.firstItem())
    bk.save()
    for(a=app.documents.length-1; a>(-1); a--){
    app.documents[a].save(File(app.documents[a].fullName));
    app.documents[a].close();
    bk.close()

  • Indesign server web service - where is the support to upload a file with the script and download the result?

    Hi,
    I am working on a POC that is supposed to convert indd files to pdf (i.e. using of course the indesign server). Basically I want to call the IDS Web Service (located on a different machine perhaps), pass in the input file, the conversion script and retrieve the result as part of the WebService call? 
    Browsing the documentation, examples, etc in the SDK, I couldn't see how the above can be achieved without the client handling the file transfer. Surely I must be missing something ...
    thanks
    Chris

    What do you mean with POC?
    InDesign Server is too precious (i.e. license cost) to waste its time with file transfers.
    For a smaller scale, let a separate process (some http or smb server) on the same server hardware handle the files - so that the InDesign Server can access them on the fastest local volume.
    If you plan for bigger, use a dedicated server for file sharing (your choice of SMB, NFS or whatever), where the input files are prepared by the client process, so that your load balancer can immediately point the next free instance of the InDesign server farm to the file. In that case be prepared for some try and error - high speed file sharing can be tricky with files written from one side not yet visible or incomplete to the other side, locking problems, Unicode file name trouble, unexpected time stamps and so forth.
    Btw, there is also an InDesign Server forum which would be more appropriate for such discussions.
    Dirk

  • [CS5] InDesign Server holding onto script file after being executed?

    Hello,
    I've run into a scenario which we have a script file dynamically created, saved to disk, then sent to InDesign Server to be executed. The code that tells InDesign Server to execute the script will delete that script file after it's finished executing. This works MOST of the time. However, sometimes, we get IO Execeptions stating that the file cannot be deleted because it is still in use. It would appear that InDesign Server is possibly holding onto the script files maybe even for just a millisecond after it's finished executing.
    Has anyone experienced anything like this before? I'm looking for possible things to check (maybe it's not even ID Server that is the problem). Or maybe there is some option within ID Server when executing scripts that would allow ID Server to remove the file instead of our .NET code?
    Any advice/suggestions greatly appreciated, thanks!
    -lhanneman

    UPDATE:
    It appears that this problem is related to IDS executing the script. I've narrowed the problem down by taking the script execution completely out of the equation. If my code saves the script to disk and attempts to delete it right after - it works every time. I'm also able to, within our .NET code, save the script to disk, open the file up, read a line out, close it, and then immediately delete it. ONLY when ID Server executes that script between writing the file and deleting the file do we have problems.
    Has anyone ever encountered anything like this? It seems to be directly related to ID Server holding onto the file for too long.
    Again, many thanks in advance for any help!
    -lhanneman

  • Scripting InDesign Server

    I understand that when scripting the server, there is no such thing as an activeDocument, so app.activeDocument should be replaced with:
    app.documents[0].getElements()[0]
    if you want a resolved reference (app.documents[0] is usually good enough, though).
    But what happens to commands like:
    alert(Msg)
    and it's confirm() and prompt() brethren? Do these cause a message on the server thereby bringing things to a halt? Or is the server intercepting these and moving on?
    Is there a place a scripter can go to get information on what can or cannot be done on the server? Or should that be "what should or should not be done"?
    Dave

    Hi Dave,
    There's a scripting guide and scripting reference that come with the server -- they're a little different than the desktop version... unfortunately the guide isn't quite different enough, so there's also 'trial and error'. :(
    Alert, confirm, etc... Adobe InDesign Server will supress these.
    Unfortunately they don't show up in the errorList so you don't have access to the supressed messages. If you do want the message to show up in the server console and to be available in the error list you can use these:
    app.consoleout(Msg);
    app.consoleerr(Msg);
    Paul

  • InDeSign Server - Flex - SOAP - Business cards tutorial - MISSING Arguments for Script

    Hello, <br /><br />I test even Adobe Flex with InDesign server. I am occupied with<br />the Business cards tutorial. The Problem is, which no arguments are<br />transferred to servers at InDesign. The Script is executed and the new document and the pdf are produced.<br />But without contents!? Is the error situated in it WSDL file? Here my<br />data:<br />InDesign Server Port = 8070<br />Mac Localhost = http://localhost:8888<br />The IDSP Root = http://localhost:8888/IDSP.wsdl<br /><br />IDSP.wsdl Content<br /><br /><?xml version="1.0" encoding="UTF-8"?><br /><definitions name="Service"<br /> targetNamespace="http://localhost:8888/IDSP.wsdl"<br /> xmlns:tns="http://localhost:8888/IDSP.wsdl"<br /> xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"<br /> xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"<br /> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"<br /> xmlns:xsd="http://www.w3.org/2001/XMLSchema"<br /> xmlns:IDSP="http://ns.adobe.com/InDesign/soap/"<br /> xmlns:SOAP="http://schemas.xmlsoap.org/wsdl/soap/"<br /> xmlns:MIME="http://schemas.xmlsoap.org/wsdl/mime/"<br /> xmlns:DIME="http://schemas.xmlsoap.org/ws/2002/04/dime/wsdl/"<br /> xmlns:WSDL="http://schemas.xmlsoap.org/wsdl/"<br /> xmlns="http://schemas.xmlsoap.org/wsdl/"><br /> .........<br />......<br /><service name="Service"><br /> <documentation>gSOAP 2.7.8c generated service definition</documentation><br /> <port name="Service" binding="tns:Service"><br />  <SOAP:address location="http://localhost:8070"/><br /> </port><br /></service><br /><br /></definitions><br />  <br />Flex MXML Content:<br /><br /><?xml version="1.0" encoding="utf-8"?><br /><mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"><br />     <mx:WebService id="wsIDSP"<br />          wsdl="http://localhost:8888/IDSP.wsdl"<br />          endpointURI="http://localhost:8070"<br />          useProxy="false"><br />          <mx:operation name="RunScript" resultFormat="e4x"><br />               <mx:request><br />                   <runScriptParameters><br />                      <scriptLanguage>javascript</scriptLanguage><br />                      <!--Optional:--><br />                      <scriptFile>/Volumes/Macintosh HD/Applications/Adobe InDesign CS3 Server/Scripts/myScripts/businessCards.jsx</scriptFile><br />                      <scriptArgs><br />                     <scriptArg><br />                         <name>name</name><br />                         <value>{nameInput}</value><br />                    </scriptArg><br />                    <scriptArg><br />                         <name>company</name><br />                         <value>{companyInput}</value><br />                    </scriptArg><br />                    <scriptArg><br />                         <name>title</name><br />                         <value>{titleInput}</value><br />                    </scriptArg><br />                      </scriptArgs><br />                   </runScriptParameters><br />               </mx:request><br />               <br />          </mx:operation><br />     </mx:WebService><br />     <mx:Script><br />          <br />              [Bindable]<br />              public var nameInput:String="";<br />              [Bindable]<br />              public var companyInput:String="";<br />              [Bindable]<br />              public var titleInput:String="";<br />              <br />              private function makeCards(name:String, title:String, company:String):void<br />              {<br />                   nameInput = name;<br />                   companyInput = company;<br />                   titleInput = title;<br />                   <br />                   wsIDSP.RunScript.send();<br />              }<br />          <br />     </mx:Script><br />     <mx:Form width="410" height="277" x="46" y="34" horizontalScrollPolicy="off"><br />          <mx:FormHeading label="Business Card Information"/><br />          <mx:FormItem label="Name"><br />               <mx:TextInput id="textName" width="100%" /><br />          </mx:FormItem><br />          <mx:FormItem label="Title"><br />               <mx:TextInput id="textTitle" width="100%" /><br />          </mx:FormItem><br />          <mx:FormItem label="Company"><br />               <mx:TextInput id="textCompany" width="100%" /><br />          </mx:FormItem><br />          <mx:FormItem x="75"><br />               <mx:Button x="150" label="Print Cards" <br />                         click="makeCards(textName.text, textTitle.text, textCompany.text)"/><br />          </mx:FormItem><br />          <mx:Text x="47.5" y="194" text="{wsIDSP.RunScript.lastResult.errorNumber}" width="383" height="20"/><br />          <mx:Text x="47.5" y="224" text="{wsIDSP.RunScript.lastResult.errorString}" width="381" height="20"/><br />          <mx:Text x="47.5" y="254" text="{wsIDSP.RunScript.lastResult.scriptResult.data}" width="383" height="24"/><br />     </mx:Form><br /><br />     <br /></mx:Application>

    I am curious where you got the tutorial, and which version of InDesign Server you are using. Also, can you show the contents of the businesscards.jsx script?
    In the meantime, it seems like the connection from Flex to InDesign is working since your script is running and producing output. The next step is to check the arguments being passed to the script, and how the script is accessing and using the arguments.
    You can add this to your jsx script to test the values of the arguments:
    var myName = app.scriptArgs.IsDefined("name") ? app.scriptArgs.getValue("name") : "name undefined";
    app.consoleout("scriptArg name = " + myName);
    var myCompany = app.scriptArgs.IsDefined("company") ? app.scriptArgs.getValue("company") : "company undefined";
    app.consoleout("scriptArg company = " + myCompany);
    var myTitle = app.scriptArgs.IsDefined("title") ? app.scriptArgs.getValue("title") : "title undefined";
    app.consoleout("scriptArg title = " + myTitle);
    To see the values, watch the InDesign Server console window. If you are not getting the values you expect, check your mxml code to make sure the variable names are valid, etc. If you are getting the values you expect, examine your businesscards.jsx to make sure you are using the values as required to populate the InDesign document.
    Susan

  • Request a .jpg image from Indesign server via script?

    hello,
    I have a scenario in which I am switching from using QuarkXpress Server to Indesign Server. With Quark Server I am able to request a jpg image from a quark Document. Basically, by providing the right parameters, I can get a JPG preview of what a picture box or text box looks like in the Quark Document.
    I need to do something like this with InDesign Server. Is it possible to write a script specifying an Indesign Document and maybe a TextFrameID or PictureFrame ID and get a JPG rendering of it?
    I know I can export the whole document as a PDF but I need to be able to get images of single textframes/pictureframes or grouped frames.
    Does anyone know if this is possible or how to do this?
    thanks in advance!!!
    -Lloyd

    Or maybe the only way to achieve this (hopefully not, though) is to export the whole document as a JPG, and then find a way to programmatically crop the part I need based on the coordinates of the textframe/pictureframe (or grouped framed) that I need?
    thanks in advance,
    Lloyd

  • Move group of pages from one InDesign file to another InDesign File using VB.Script

    Dear team,
    I am trying to move group of InDesign pages from one indesign file to another indesign file using vb.script.
    I have written the code like
    Dim Pages=IndDoc.Pages
    Dim Mytype=TypeName(Pages)
    Pages.Move(InDesign.idLocationOptions.idBefore,IndDoc1.Pages.LastItem)
    but it is giving an error as method Move is not a member of Pages 
    please give mme the solution to move the Multiple pages or a group of page from one Indd to another Indd.

    Hey Peter, if I wan to move several page that part of Auto Flow text, I checked the "delete page after moving" but the content still there, not deleted.
    Is there any way to delete it automatically, just to make sure I have moved that autoflowed page?

Maybe you are looking for