How to get the file name of the current active document in InDesign CS4?

Hello

If I open a document in the file-> open, I can get the file name of the document using IOpenedFileInfo-> GetOpenedFilePath().

But, if I create a new document and run the file-> save as, GetOpenedFilePath is invalid back reference IdFichier.

What is the right way to get the file name of the active document?

Thank you

VSP

You can try this:

IDatabse * db =: GetDatabase (theDoc);

IdFichier * SYSIXCOL = db-> GetSysFile();

PMString docName is SYSIXCOL-> GetFileName();.

Good luck

Tags: InDesign

Similar Questions

  • How to get the current timestamp in C++ to the BB10 project

    Please help me how to get the current timestamp in C++. Thanks for your help!

    Following your suggestion,

    QTime is only for a day.  http://developer.BlackBerry.com/Cascades/reference/QTime.html#details

    I found "QDateTime" of references of the API: http://developer.blackberry.com/cascades/reference/qdatetime.html#toTime_t

    QDateTime = now QDateTime::currentDateTime();
    timestamp long = now.toTime_t ();

    But I got an error. I searched but no results are clear:

    -variable 'QDateTime now' initializer has but
    incomplete type
    -type incomplete "QDateTime" used in the nested name
    specifier of

    I am a newbie. So thank you for your help

  • How to get the current wording of the BlackBerry device with the BlackBerry App?

    Hello!

    I'm new to BlackBerry,

    Can u tell me pls, how to get the current language of the device using the program...

    PLS, suggest me...

    Locale.getDefaultForSystem () will give you the regional settings currently selected.

  • How to get the new activation key when some numbers are taken away and you have received?

    How to get the new activation key when some numbers are taken away and you have received?

    Have a laptop with windows 7 from Dell. Need to re install W7. And I have some numbers are taken as a result of its use.
    How can I get a new code activation or my complete activation code?
    Best regards, W7 user

    How to get the new activation key when some numbers are taken away and you have received?


    Have a laptop with windows 7 from Dell. Need to re install W7. And I have some numbers are taken as a result of its use.
    How can I get a new code activation or my complete activation code?

    Dell provided you with restore/recovery media and/or a way to restore the machine 'default' as a key sequence?  If so - you won't need the number--unless they just sent a DVD of Windows 7 nu - and they are usually not unless you ask.

    They have probably installed using their key, which means that even with a utility like Belarc Advisor or ProduKey - you will not get the product key that matches the one on the sticker.

    Some may have you take several different digital pictures of the sticker from different angles and see if you can decipher the missing characters like that (you'd be surprised to see how that works).

  • How to get the current position from the point of view

    can I know how to get the current position of the view?

    Edited by: anIdiot July 27, 2011 22:01

    1 - get belvedere of the universe:

    u = new SimpleUniverse (canvas3D);
    ViewPlat = u.getViewingPlatform (); view of the universe

    definition viewplat: ViewingPlatform ViewPlat;

    2 - get look a transform of the platform in an existing Transform3D

    ViewPlat.getViewPlatformTransform () .getTransform (t3d).

    3 - Look at the trandform: t3d.get (Quater1, vector1); orientation object Get and coords

    Kind regards.
    JFP

  • How to get the current zoom value in the ID?

    Is there a way that can get the current zoom value in InDesign?

    ZoomValue.png

    Thank you very much.

    You could glance at the widget shown in your screenshot, at least when frame MDI (?) is displayed.

    The title of the window to kLayoutPresentationBoss, IID_IDOCUMENTPRESENTATION also reflects the value.

    Probably the best would be the kLayoutWidgetBoss, IID_IPANORAMA, GetXScaleFactor() - and GetYScaleFactor()!

    I'm just trying to imagine how a document would look like if these differ from each other ;-) and, better yet, how to achieve this objective in the user interface.

    BTW, only one notification is kDocWorkspaceBoss, Protocol IID_IWINDOW, order kUpdateDocumentUIStateCmdBoss.

    Another: there's a kDocWindowTitleModifyService...

    Edit: I note once again of course IID_IPANORAMA, observable of the subject kLayoutWidgetBoss.

    Dirk

  • How to get the current file name and & or path

    How can I get the current path or the file name?

    I have really found the answers in the net. This.Path or app.path have been proposed, but I couldn't make it work.

    Thanks in advance for your answer!

    LiveCycle Designer ARE 8.2.1.3144.1.471865

    Hello

    event.target.path.toString ();  will give the full path, including the file name.

    event.target.documentFileName.toString ();  will give the file name only.

    Good luck

    Niall

  • How to get the current state of the son process

    Hello

    If I know that the instance id of a child process.
    How can I get the current state of the child (e.g., completed, running, etc.) process in the code "PBL"?

    Thank you in advance.

    Hello

    Here's a way to display the status of children sub-process engendered by a process parent process creation activity. In this sense, the process id of the subprocedure is "ChildProcess. The id of the activity of creating processes in the parent process that causes the work item instance in the child process called 'SpawnChildren '. This logic is performed from inside the process parent in an activity downstream process creation activity, called "SpawnChildren".

    Display statements have been added just to see you return values (do) their leash not when going into production.

    display "Children: " + children + "\nKeys: " + children.keys + "\nLength: " + length(children) +
    "\nInstance id of child: [" + children["SpawnChildren"] + "]"
    
    if children["SpawnChildren"] = null or children["SpawnChildren"] = "" then
         display "Child is completed"
    else
    
         bp as BusinessProcess
    
         connectTo bp
                         using url = Fuego.Server.directoryURL,
                             user = "test",
                             password = "test",
                             process = "/ChildProcess"
    
         instance as Fuego.Papi.Instance
         instance = getInstance(bp, instance : children["SpawnChildren"])
         logMessage "run Instance: " + instance.id
                          using severity = DEBUG
    
         display "Status: " + instance.status + "; inside the child process in the activity: " + instance.activityName
    
         disconnectFrom bp
    end
    

    I downloaded the project I used this in to http://www.4shared.com/file/130890113/2d825960/ChildrenOfaParent.html.

    Hope this helps,
    Dan

  • How to get the current location in the event thread?

    Hello!

    Can U pls tell me how to get the location where the thread object, it is in method() execution of MenuItem. PLS, tell me-

    I also used the different thread for the getLocation() method. But I do not have the coords of geo location...

    PLS, suggest me-

    My code is as below:

        private MenuItem getGeoCodes=new MenuItem("Current Coords",100,1){
    
                                 public void run(){
                                     double[] coords=getLocationCoords();
                                     this.wait(12000);
                                     System.out.println("Latitude :"+coords[0]+" "+"Longitude:"+coords[1]);
                                 }
    
                     };
    
        private double[] getLocationCoords(){
            Criteria criteria = new Criteria();
            criteria.setHorizontalAccuracy(500);
            criteria.setVerticalAccuracy(500);
            LocationProvider locationProvider = LocationProvider.getInstance(criteria);
            Location location=null;
            new Thread(){
               public void run(){
                       locationProvider.getLocation(60);
               }
            }
            QualifiedCoordinates qualifiedCoordinates=location.getQualifiedCoordinates();
            double[] coords=new double[]{qualifiedCoordinates.getLatitude(),qualifiedCoordinates.getLongitude()}   ;
             return coords;
        }
    

    But I myself NullPointerException. Coordinates get successfully, if we run the location capability in different function, rather than the event thread.

    Please help me-

    In my opinion, which may be too complicate things a bit. I think he's trying to do is register a LocationListener with his object of LocationProvider. Callback methods, send a message to the UI event thread as follows (no need to spawn threads):

    UiApplication.getUiApplication().invokeLater( new Runnable() {
        public void run()
        {
            // This code will execute on the event thread
        }
    });
    

    EDIT: If your interval is short, you can consider implementing this executable as a class and store an instance in the front.

  • How to get the current date to display in the Spanish format.

    The coding is in format Adobe Acrobat, DC. The coding I have for the English today's date is:

    var d = new Date();

    sDate = util.printd var ("dd mmmm yyyy", d);

    this.getField("Text1").value = sDate;

    How can I get the current date displayed in this Spanish format: 07 December 2015

    Thank you

    It's a little complicated... But this code should do the trick:

    util.printd("dd", d) + " de " + util.printd("date(es){MMMM}", d, true) + " de " + util.printd("yyyy", d);
    

    Edit: Fixed the code... Did not notice the 'of' second before.

  • How to get the current value of db in backing bean

    Hello

    I use jdeveloper 11.1.2.3.0

    I would like to know how I could access the old value of an attribute in backing bean.
    I know I can get it in terms of EntityImpl with the getPostedAttribute function,
    but as I see that I'm not allowed to access this function in the ViewImpl.
    I get this error:
    Error (151,33): getPostedAttribute (int) has protected access to oracle.jbo.server.EntityImpl.

    Could you help her?
    What is the right way to get the current value on db in backing bean?

    Thank you very much!

    You can add a transitional attribute to the entity object to hold the old value of the desired attribute, then you can add this attribute to the view object.
    Check [url http://www.youtube.com/watch?v=iKVIiK0FBXI] retrieve the previous value of an attribute ADF BC

  • How to get the current folio of inside a folio with reading sdk

    Hello

    I am currently trying to get the current folio and its value of filter in the reading sdk (custom Navigation).

    Section 2.31 there is a "ReadingService" with "currentfolio" (Adobe DPS - reading SDK 2.31: adobeDPS-ReadingService: JsDoc reference).

    However, this Service has disappeared to 2.32. "Folio", itself is difficult.

    My question is: How can I get the current folio and its filter?

    I tried with adobeDPS.Folio / adobeDPS.Folio () filter and so on but nowhere.

    Best regards

    Andy

    Just use in any case, it's probably an error of generation of paper when we have updated the docs with the Windows platform tags. I'll ask the team to take a look.

    Neil

  • How to get the current GPS position of the BlackBerry emulator?

    Hello! all, I am writing a simple program to get the current coordinates of GPS (Latitude, Longitude) in BlackBerry.

    Criteria criteria=new Criteria();
            criteria.setHorizontalAccuracy(500);
            criteria.setVerticalAccuracy(500);
            LocationProvider locationProvider=LocationProvider.getInstance(criteria);
            Location location=locationProvider.getLocation(60);
            QualifiedCoordinates coordinates=location.getQualifiedCoordinates();
            System.out.println("Latitude : "+coordinates.getLatitude()+" Longitude : "+coordinates.getLongitude());
    

    But, I couldn't get the latitude and longitude. It returns 0 (zero) for the two coords.

    PLS, suggest me the solution.

    The 9000 Simulator has GPS simulation. In the "Simulation" of the Simulator menu, select "GPS". There is an already defined test site, you will need to select this place.

  • How to get the current value of the checkbox button programmatically in the adf

    Hello
    I want to get the current value of the checkbox (checked/unchecked or 0/1) in my bean java whenever I press the button "submit" on my page jspx.

    My version of JDeveloper is: 11.1.1.6.0

    Where the value checkbox link? The State of the check box is held in the value property of the check box. This is normally an EL as

    #{bindings.Myvar1.inputvalue}
    

    or something pointing to a bean property. This value can be read from the listener to the action of the submit button

            BindingContainer bindingContainer = BindingContext.getCurrent().getCurrentBindingsEntry();
            AttributeBinding attr = (AttributeBinding)bindingContainer.getControlBinding("Myvar1");
            Object obj = attr.getInputValue();
    

    Timo

  • How to get the current selected action.

    Hello

    I would get the currently selected action.

    Please refer to the image below. Vignette (selection) is selected.

    Is there a script that I could use to get the which?

    Your help is very appreciated.

    Untitled-1.jpg

    getSelectedAction()
    function getSelectedAction(){
        var ref = new ActionReference();
        ref.putEnumerated( charIDToTypeID("Actn"), charIDToTypeID("Ordn"), charIDToTypeID("Trgt") );
        try{
            var desc = executeActionGet(ref);
        }catch(e){ return; } // no action selected
        var selectedName = desc.getString(charIDToTypeID("Nm  "));
        var selectedIndex = desc.getInteger(charIDToTypeID("ItmI"));
        var parentName = desc.getString(charIDToTypeID("PrNm"));
        var parentIndex = desc.getInteger(charIDToTypeID("PrIn"));
        if(isActionSet( parentIndex, parentName )){
            var setName = parentName;
            var actionName = selectedName;
        }else{
            var setName = findAction(parentIndex, parentName );
            var actionName = parentName;
        }
        return [setName,actionName];
    };
    function isActionSet( parentIndex, parentName ){
       var res = false;
       try{
          var ref = new ActionReference();
          ref.putIndex( charIDToTypeID( "ASet" ), parentIndex );
          var setName = executeActionGet( ref ).getString(charIDToTypeID("Nm  "));
          if(setName == parentName) res = true;
       }catch(e){}
       return res;
    };
    function findAction(parentIndex, parentName ) {
      var i = 1;
      var found = false;
      while (!found) {
        var ref = new ActionReference();
        ref.putIndex(charIDToTypeID('ASet'), i);
        var desc;
        try {
          desc = executeActionGet(ref);
        } catch (e) {
          break;
        } finally {
        }
        if (desc.hasKey(charIDToTypeID('Nm  '))) { ;
          var setName = desc.getString(charIDToTypeID('Nm  '));
            var ref = new ActionReference();
            ref.putIndex(charIDToTypeID('Actn'), parentIndex);
            ref.putIndex(charIDToTypeID('ASet'), i);
            try{
            var adesc = executeActionGet(ref);
            var actName = adesc.getString(charIDToTypeID('Nm  '));
            if(actName==parentName) return setName;
            }catch(e){}
          }
        i++;
        }
    };
    

Maybe you are looking for

  • update to Media Center computer HP Pavilion a1323w

    I had problems with my original computer HP Pavilion a1323w that my only change was to add a memory to handle the upgrade to Windows 7 last year.  More recently, I bought a HP 110-023w desktop with Windows 8 (now updated to 8.1), which has much bette

  • Re: Equim P300-16 t - disconnect Internet

    Hello I'm disconnected from the internet every time I open Firefox 2/3, or run some programs that require windows internet, etc. of Pokerstars.It is fine until I open a new window/program then my internet cutting out for about 30 seconds. I have 20 G

  • Computer laptop Windows 7 wakes up from sleep, Hibernate and shutdown

    I have a laptop running Windows 7. My laptop stop or switch mode standby/hibernation, only to wake up a second later. BUT, it does so only when my power adapter is plugged. I was able to disable this to happen before using the command prompt. After u

  • Get the message "Unable to log on to a microsoft service" on connect on the desktop

    Original title: Windows 7 Starter Whenever I connect to my lap top I get a message in my laptop, I get a message in the notification area stating that I failed to connect to a service microsoft, need it means that there seems to be something new and

  • Audio Realtek

    MEU pc esta sem som no windows 7. JA I tried restore o drive several vezes não decided mas. material of Agora appears o com um Código 10 e diz o device nao pode ser implies.