How can I get objects of multiple instances of InDesignServer

Hello,
We need to have InDesignServer running in more than one configuration. And we need to script them. So to keep easy let's pretend there are 2 instances of InDesignServer running. One startet with 'indesignserver -configuration conf0' and the other started with 'indesignserver -configuration conf1'.
So we try (Visual Basic):
dim myIndApp0 as InDesign.Application
dim myIndApp1 as InDesign.Application
myIndApps0 = CreateObject("InDesignServer.Application.CS2")
myIndApps1 = CreateObject("InDesignServer.Application.CS2")
But both objects referring to the instance with conf0. How can we get an object of the second instance?
We tried to solve this using System.Diagnostics.Process.GetProcesses(). So we got both processes. But did not find a way to get an object of class InDesignServer.Application by using an object of System.Diagnostics.Process. Any ideas about that way?

Hi Ian,
The problem is not to start different instances. In the Windows Task Manager and the console output of InDesign Server I can see, that both instances are running with different configurations. When I use Systems.Diagnostics.Processes.GetProcess() I get both processes too.
But I don't know how to get objects of both instances using the Interop Assembly or (as a runaround) how to cast an object of System.Diagnostics.Process into an object of InDesignServer.Application.
When you talking about SOAP, do you know how to start InDesignServer twice with diffrent ports from inside VB and getting the InDesignServer.Application objects of it?
This should be solve our problem too.

Similar Messages

  • How can I get file from multiple instance using file adapter

    Hi.
    Our system(PI7.1) have three application instances running with each physical servers.
    We use sender file adapter.
    The file data is sent to one of the servers.
    Now, how can I get the file using three file adater?
    Should I put the file "sapmnt(\usr\sap)" .
    Or are there another solution?
    regards,

    Hi Ashutosh
    You will have to use sapcar.zip which contains the utility Sapcar.exe utility for unzipping the files from SAP compressed files. (*.car file)
    Regards
    Gaurav
    PS: Reward points if solved

  • How can I get rid of multiple pictures at the same time?

    how can I get rid of multiple pictures at the same time?

    Adobe Bridge, lightroom and your file browser (windows explorer or Mac Finder) can select multiple pictures at once and then delete. If you are looking for more than that for information, you will need to be more specific at what your doing, what OS you have, and version of software your using. If necessary post screen shots so we can see what your doing. The more information we have the more detailed of an explaination can can give back to you.

  • How can I get width that multiple selected items?

    How can I get width that multiple selected items? (Not grouped.)
    //---------- source code ----------
    var mm = 2.83464566929134 //unit conversion. (point->milimeter)
    var W = docRef.selection[0].width/mm;
    alert(W);
    //---------- source code ----------

    That's right Carlos
    @kimDino8,
    my script in Carlos link creates a green rectangle around the selected items. If you don't need this rectangle than you can remove this lines:
    var newRGBColor = new RGBColor();
    newRGBColor.red = 0;
    newRGBColor.green = 255;
    newRGBColor.blue = 0;
    and replace this:
    var aRectangle = aDoc.pathItems.rectangle(vBounds_Ob, vBounds_Li, vBounds_Re - vBounds_Li, vBounds_Ob - vBounds_Un);
    aRectangle.strokeColor = newRGBColor;
    aRectangle.strokeWidth= 2;
    aRectangle.filled = false;
    aRectangle.stroked = true;
    aDoc.selection = null;
    with this:
    var mmFactor = 2.83464567;
    alert("width = "+ (vBounds_Re - vBounds_Li)/mmFactor);
    alert("height = "+ (vBounds_Ob - vBounds_Un)/mmFactor);
    Further you only have to do: create a function for rounding of the result.

  • How can I get rid of multiple versions of the iTunes Folder

    I am using Windows 7 and iTunes 12.1.1.4.  Multiple iTunes folders have been created on my computer (on both my C: drive and my D: drive under Users and My Documents) and they all have different content.  Some albums show up in one instance of the iTunes\iTunes media\music folder and some show up in another.  How do I get all the content synched up?  Can I simply drag and drop all these iTunes folders into D:\My Documents\My music\iTunes (the D: drive being where I store all my documents and photos) and then delete the rest of the iTunes instances?

    Several remedies may apply:
    For media files that are correctly linked from your iTunes Library, i.e., they will play without reporting something like this:
    you can make sure that everything is contained within your main iTunes folders by selecting File > Library > Organize Library... and when you get this prompt:
    check the Consolidate files box and, if not greyed out, the Reorganize files ... box and then click OK.  This will move any media files that are in other locations to the folders under the setting in Edit > Preferences > Advanced:
    This is the location of your media folder.  By default, this will be C:\Users\username\Music\iTunes\iTunes Media, where your iTunes database (the iTunes Library.itl file) is stored in C:\Users\username\Music\iTunes.  In general that relationship between the database and the media folders should be preserved - in the example above the complete library is stored on a external drive, with the database in K:\iTunes and the media folder location being K:\iTunes\iTunes Media.  Note that this setting doesn't tell iTunes where to find media files (that info is embedded in the database); rather, this setting determines where new media is placed within the media folders.
    Checking this causes iTunes to automatically place media in folders, and (re)name media files, based on the metadata associated with the files.  For music this means that everything will be in folders following the pattern iTunes Media\Music\artist_name\album_title and files to be named using the disc number (if present), track number and song name.
    Checking this makes iTunes copy all new media into the media folders, independent of the method of adding it.
    Second case ...
    For songs that are listed in your library but you do get the "missing file" error, right-click on one of these songs - there will be a "(!)" symbol next to its name, right-click > Get Info.  When you get this prompt:
    click No (there's a bug in iTunes 12 such that you actually have to click No twice).  Then go to the File tab and look for the Location information - sometimes you have to scroll down or expand the editor window to see it.  You'll see something like this:
    The "file://localhost/" prefix indicates that iTunes can't locate the file.  The rest of the entry is the path to the file that iTunes holds in its database, i.e., where iTunes "thinks" the file is.  This may be enough of a clue to determine where it actually is - close the editor, right-click > Get Info again, but when you the "... cannot be located ..." prompt click Yes then navigate to and select the correct media file.  In many cases iTunes will then be able to adjust its location info for other songs.  Otherwise there are a number of techniques that you can use to track down and repair these broken links - often using scripts running against the iTunes database.
    ... and the third case:
    If you have folders that are labeled as "iTunes" but their content doesn't appear in your library within iTunes itself, add these to the library by any of these methods:
    select File > Add Folder to Library... then navigate to and select the folder(s) containing the "missing" albums/songs
    drag and drop these folders from Windows Explorer into iTunes
    copy these folders into iTunes' Automatically Add to iTunes folder
    Once you've been through these steps its probably worth running the Consolidate Library process again to make sure everything's in the right place.  Once you've checked that to be the case, you can delete any stray "iTunes" folders that are outside the hierarchy rooted in the folder where your database and your standard iTunes Media files are located.
    Two final points:
    Moving files and folders around yourself never fixes anything in iTunes - in most cases it'll only make things worse by creating (more) broken links
    A couple of turingtest2's valuable user tips also apply here:
    Make a split library portable describes the optimal layout for an iTunes library, easing the processes of moving it between computers and maintaining a backup of it, as well as the steps needed to bring a library into that shape
    Backup your iTunes for Windows library with SyncToy describes a suitable/recommended method to create and maintain a backup ... when you've gone through the effort to make your library just exactly perfect you don't want to lose it all as the result of a virus, hard disc crash, or other fatal failure!

  • Without warning when I write an email, I can only send to 1 recipient. How can I get back to multiple recipients?

    I have been using Thunderbird for several years now and this is the first time I have had something like this happen. Yesterday, when I tried to send an email to several individuals I was no allowed to do so.
    After typing the first name in I could not generate another "To" line for the 2nd recipient.
    How can I restore Thunderbird to working properly short of uninstalling and reinstalling?
    Paul

    What are you trying to do after filling out the first address field?
    Hitting Enter or Return will generally create a new field.
    You can also move your mouse to the divider line under the subject field and when it becomes a double headed arrow, left click, hold and drag down to reveal move fields.
    Go into the config editor and tell us what is in the addresswidget field.
    From the menu bar select Tools-Options-Advanced-General
    Click Config Editor and promise to be careful
    type addresswidget in the search field.
    This field specifies how many address fields to display when opening a Write window but has nothing to do with keeping you from hitting Enter to keep them coming.
    You right click the addresswidget line and select Modify to change the default value which is 3.

  • How can I get object name inside the object

    I'm trying to get the object name inside its pl/sql code to pass to another procedure, there must be a way to select object name from system tables ?
    Thanks for help

    Dear Garcia,
    Let me try to help you out..
    First of all let me confirm your requirement.. ie you want to get the attribute 'CONFIG_LINE_COL' of type cl_crm_bol_entity_col from the object 'ISUORDERITEM" right ?..
    try this code,
    data: lr_col type ref to cl_crm_bol_entity_col.
    lr_col = me->typed_context->isuorderitem->config_line_col.
    now you got the collection in lr_col variable.. you can play with this data now. I dont know whats your actual requirement so that i can help you further :).
    Hope it helps.
    Regards, Sudeep..
    Edited by: sudeep vd on Oct 2, 2008 7:31 PM

  • How can I get rid of multiple tabs when I open Yahoo

    When I open Yahoo.mail, I get many tabs for Yahoo.
    I should only get one.
    How do I fix this so I'm not getting all these tabs. This started when I switched from Mail Classic to the New Mail & back again. Many of the excess tabs are for the Yahoo page that describes the two different versions of Yahoo mail.
    I'm using a MacBook & both Yahoo & Mozilla are up-to-date.
    Thanks!

    The suggestions didn't work HOWEVER I found a solution to my issue with this. So far it seems to work.
    Go into Firefox Preferences>general
    I reset the opening page from Yahoo In Box (which seemed to be the problem) to the default. Opened it all up then returned to Firefox Preferences & reset it back to Yahoo In Box.
    Now it seems to be working ok without all those nasty tabs slowing me down.

  • How can I avoid opening the several instances of the same form?

    Hi Friends,
    I have a MDI form with a menu. When open a form by clicking the menu twice, it is opening two instances of the same form. It is eating up all resources of my memory.
    How can I avoid opening the multiple instances of the same form? I want the activate the form which is already open instead of opening the new instance of the same.
    Anybody knows solution please help me.
    Thanks
    Gopinath Kona

    Hi,
    U must be using the built-in OPEN_FORM in your code. Instead of that, check it using the following code....
    IF ID_NULL(FIND_FORM('form_name')) THEN
    OPEN_FORM('form_name with the path');
    ELSE
    GO_FORM('form_name'); --shifts the control into the form which is already open.
    END IF;
    hope it helps...
    null

  • How can I get the underlying object from the ObjectReference

    Dear friends,
    I think this question has been asked a couple of times. But, I am still wondering if anybody has found an answer to it. Maybe this is some common need ...
    I would like to get the underlying object for which the ObjectReference is
    a mirror For example, I have a class Customer in my application, and I can get an ObjectReference through JDI during runtime. But how can I get the target VM's object which is a real instance of Customer, by which I can invoke methods defined in Customer?
    Thank you so much for any input!
    SunnyDay

    I'll preface this response by admitting this far from an elegant solution, but I did write a function addressing this question, mostly as an exercise.
    If passed an object with an InTextFrame property (Pgf, AFrame, Cell, Fn) that resides in an open document, the function will return the Doc object. Otherwise, it returns undefined.
    function getParentDoc(testObj) {
        //Get object for current page
        try { var curPage = testObj.InTextFrame.FrameParent.PageFramePage; }
        catch(er) {return;}
        //Step backwards to first page in document
        var prevPage = curPage.PagePrev;
        while (prevPage.ObjectValid())
            curPage = prevPage;
            prevPage = prevPage.PagePrev;
        //Compare with first pages of open documents
        var testDoc = app.FirstOpenDoc;
        while (testDoc.ObjectValid())
            if (curPage.id==testDoc.FirstBodyPageInDoc.id) return testDoc;
            testDoc = testDoc.NextOpenDocInSession;    
        return;
    To your PPS: Rather than seeing the native framework grow bloated to address additional features, I would love to see Adobe and other developers publish libraries of useful functions and class extensions.

  • How can I get an instance of my customize cell in tableview?

    Hi,I'd like to generate a customize tablecell in my tableview.but How can I get an instance of my customize cell in tableview when selected item changes?
    public class Person {
              private javafx.beans.property.BooleanProperty active;
              private StringProperty firstName;
              private StringProperty lastName;
              private StringProperty email;
              private Person(String fName, String lName, String email) {
                   this.active = new SimpleBooleanProperty(true);
                   this.firstName = new SimpleStringProperty(fName);
                   this.lastName = new SimpleStringProperty(lName);
                   this.email = new SimpleStringProperty(email);
              public javafx.beans.property.BooleanProperty activeProperty() { return active; }
              public StringProperty firstNameProperty() { return firstName; }
              public StringProperty lastNameProperty() { return lastName; }
              public StringProperty emailProperty() { return email; }
    final ObservableList<Person> data = FXCollections.observableArrayList(
                             new Person("Jacob", "Smith", "[email protected]"),
                             new Person("Isabella", "Johnson", "[email protected]"),
                             new Person("Ethan", "Williams", "[email protected]"),
                             new Person("Emma", "Jones", "[email protected]"),
                             new Person("Michael", "Brown", "[email protected]")
    public class RatingCell extends TableCell<Person,String> {
        private NabiSyncRating rating;//NabiSyncRating is a customize control.it has some method ,like change backgroud-color,value,etc.
        public RatingCell() {
             rating = new NabiSyncRating(-1);
        @Override
        public void startEdit() {
            super.startEdit();
            if (isEmpty()) {
                return;
            rating.setDisable(false);
            rating.requestFocus();
        @Override
        public void cancelEdit() {
            super.cancelEdit();
            rating.setDisable(true);
        public void commitEdit(String value) {
            super.commitEdit(value);
            rating.setDisable(true);
        @Override
        public void updateItem(String item, boolean empty) {
            super.updateItem(item, empty);
    Callback<TableColumn<Person, String>, TableCell<Person, String>> ratingCellFactory = new Callback<TableColumn<Person, String>, TableCell<Person, String>>() {
                        @Override
                        public TableCell<Person, String> call(
                                  TableColumn<Person, String> p) {
                             return new RatingCell();
    TableColumn firstNameCol = new TableColumn();
    firstNameCol.setCellFactory(ratingCellFactory);
    firstNameCol.setMinWidth(100);
    firstNameCol.setMaxWidth(224);
    firstNameCol.setResizable(true);
    tableView.getColumns().addAll(firstNameCol);
    tableView.getSelectionModel().selectedItemProperty().addListener(new ChangeListener() {
                  @Override
                  public void changed(ObservableValue observable, Object oldvalue, Object newValue)
                               Person person=(Person)newValue;
                               //I'd like to get the instance of my customize control 'RatingCell' ,How can I get the RatingCell instance which in current row?
                         System.out.println("selected row is : " + newValue );
                  });

    HI,
    I have found a solution to find it
    First ,you need to set person property 'id' as the input parameter for your customized component method 'public void updateItem(String item, boolean empty)'
    ratingCol.setCellValueFactory(new PropertyValueFactory<Person,String>("id"));
    firstNameCol.setCellFactory(ratingCellFactory);and then you need to implement your customize component like this:
    import javafx.scene.control.ContentDisplay;
    import javafx.scene.control.TableCell;
    public class RatingCell extends TableCell<Person,String> {
        private NabiSyncRating rating;
        public RatingCell() {
             rating = new NabiSyncRating(5);
            this.setGraphic(rating);
            this.setContentDisplay(ContentDisplay.GRAPHIC_ONLY);
            this.setEditable(true);
        public void updateRating()
             if(rating!=null)
                  rating.selectRating();
        @Override
        public void startEdit() {
            super.startEdit();
            if (isEmpty()) {
                return;
            rating.setDisable(false);
            rating.requestFocus();
        @Override
        public void cancelEdit() {
            super.cancelEdit();
            rating.setDisable(true);
        public void commitEdit(String value) {
            super.commitEdit(value);
            rating.setDisable(true);
        @Override
        public void updateItem(String item, boolean empty) {
             if(item!=null && item.length()>0)
                  if(rating!=null)
                       rating.setId("NR"+item);
                       this.setId("NC"+item);
                super.updateItem(item, empty);
    } and find the current like this :
    tableView.getSelectionModel().selectedItemProperty().addListener(new ChangeListener() {
                       @Override
                       public void changed(ObservableValue observable, Object oldvalue, Object newValue)
                            Person person=(Person)newValue;
                            Set<Node> colNodes=tableView.lookupAll("RatingCell");
                            for(Node nod:colNodes)
                                 System.out.println("person.email:"+"NC"+person.email.getValue()+"|nodId: " + nod.getId()+"\r\n" );
                                 if(("NC"+person.email.getValue()).equals(nod.getId()))
                                       System.out.println("get current instance" );
                                      ((RatingCell)nod).updateRating();
                       });Edited by: noob on Apr 20, 2012 4:49 PM

  • How can I get a count of objects in the near cache? (Extend client)

    Hi,
    I'm trying to figure out how to get the count of objects in my near cache (from c++ client). Knowing the size of the near cache is a key factor when optimizing configurations for performance.
    However if I call size() on the cache handle I get the count of objects in the cache (ie the cluster). How can I get a count of objects in the near cache?
    Thanks
    Rich Carless

    H Rich,
    It may not be ideal, but I think you may be able to infer the size by using the HeapAnalyzer (http://download.oracle.com/docs/cd/E15357_01/coh.360/e15728/classcoherence_1_1lang_1_1_heap_analyzer.html) facility, specifically the "class" based HeapAnalyzer. Its Snapshot representation http://download.oracle.com/docs/cd/E15357_01/coh.360/e15728/classcoherence_1_1lang_1_1_class_based_heap_analyzer_1_1_snapshot.html provides a mapping between class name and ClassStats (http://download.oracle.com/docs/cd/E15357_01/coh.360/e15728/classcoherence_1_1lang_1_1_class_based_heap_analyzer_1_1_class_stats.html) which provides information on how many instances of a given class type are in memory. Note the reported counts are process wide but if your key or value type are distinct you may be able to infer your answer. I realize this is rather complex, my only other suggestion would be to just make some guesses on size and see how they effect performance.
    Mark
    Oracle Coherence

  • When copying (importing) a CD with multiple artists to itunes, how can I get all of the tracks to be on one album?

    Wen copying (importing) a CD into itunes that has multiple artists or duets with a primary artist, how can I get the tracks to all appear on one album?

    Generally all you need to do is fill in an appropriate Album Artist. For more details see my article on Grouping Tracks Into Albums, in particular the topic One album, too many covers.
    tt2

  • When initiating an e mail to someone with several addresses used in the past the one I use most often does not come up in the first position.  How can I get these multiple e mails prioritized?

    When initiating an e mail to someone with several addresses used in the past the one I use most often does not come up in the first position.  How can I get these multiple e mails prioritized?

    We are talking about the Mail app, right? In the Mail menubar, click on Window and then Previous Recipients:
    That eliminates the previous recipients. If you are talking about the suggestions because there are 10 people with the name 'Steve' in your Contacts, then I do not know how to eliminate those unless you change the name slightly or wait until you type the last name or some other differentiator.

  • I have multiple emails associated with my i phone, but can't get my mac to associate some of the email names because it is associated with other apple id , but it's my id. how can i get around this?

    I have multiple emails associated with my i phone, but can't get my mac to associate some of the email names because it is associated with other apple id , but it's my id. how can i get around this?

    - Try contacting iTunes for the password problem:
    Apple - Support - iTunes - Contact Us
    - For the other problem you can try a reset. Nothing will be lost
    Reset iPod touch:  Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - The next standard thing to do is to download/install a new app but you cant 'do that.
    - Instead, try restoring from backup.

Maybe you are looking for

  • Networked L7680 does not work from more than one computer at a time.

    Have installed latest driver software on both computers. Printer will only work with one computer on at a time. When I run windows device trouble shooter from the last computer turned on it says printer is off. It works ok from the first computer tur

  • FCC Parameters are required in the Receiver  File Adapter

    Hi ,    Sorry for posting this  question again.. my  Structure is MT_CADVICE_STRING .     .  Batach - 1:Unbounded (Node) .     .      .Header_String - 1:1        .     .      .Line_Item       - 1:Unbounded  (Node) .     .      .      .LineItem_String

  • Im parsing error

    Hi, im is successfuly installed but after trying to launch im with web start i get An error occurred while launching/running the application. Title: IM Vendor: Sun Microsystems, Inc. Category: Launch File Error Could not parse launch file. Error at l

  • Getting started ... Help!!! (A TRUE beginner's question)

    I suspect EVERYONE in the world understands what I'm about to ask, but ... I don't. I just received my new ThinkPad T410i. The instructions say, "1. Install the battery pack. 2. Connect to power." BUT ... in the battery pack bay, so to speak, there's

  • Can I use forms Central forms on my own web server.

    Or does it have to be business catalyst?