File name of the active document

Hello friends,

Now that I managed to find quotes (special strings) in paragraphs, notes, tables and table notes - all with your generous help - I need to know the name of the file (path) of the current document (or book).

All I've found is how to get the name of an element of the book file (finally that I need too, but later).

How can I find the file name of the active document (which is not part of a book) and

How can I find the file name of the current book?

Thanks again for your help

Klaus

Friends,

Suddenly, I found the answer (research in the reference of the oject for 'Filename' rather than 'file name' - 'path' in the FDK reference):

alert ("Now processing book\n"+ app.ActiveBook.Name);
alert ("Now processing document\n"+ app.ActiveDoc.Name);

Tags: Adobe FrameMaker

Similar Questions

  • Save as - name of the active document

    Does anyone know how script backs up new name of file with Javascript for Photoshop?

    I can save the file under a new name, but it does not replace the current active document that it records since. The current active document still has the old name.

    saveFile = new File (filePath () + "/" + fileName ())

    saveOptions = new PhotoshopSaveOptions();

    saveOptions.layers = true; Preserve layers.

    saveOptions.embedColorProfile = true; Keep the color profile.

    saveOptions.annotations = true; Keep annonations.

    saveOptions.alphaChannels = true; Preserve alpha channels.

    saveOptions.spotColors = true; Preserve spot colors.

    app.activeDocument.saveAs (saveFile, saveOptions, true, Extension.LOWERCASE);

    $.writeln (savefile);

    app.activeDocument.saveAs (saveFile, saveOptions, true, Extension.LOWERCASE);

    If you set it to 'true' to 'asCopy' (the third property) the behavior seems to be as expected.

  • 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

  • How to see the file name of the document with the full path when you move mouse title bar?

    PS CS6 using, Windows 7 x 64.

    I was under the impression that when my mouse hovering over the title bar of the document, I would see a ToolTip showing the full file name, including the path.  This isn't the case and I wonder if there is a way to do it.  I know that I can click on file > save as, or Ctrl-Shift - S to see the full path, but hoving over the title bar would be easier.  (What I now see in the ToolTip is the name of the file, % magnification and layer that I selected.)  Basically, the ToolTip is showing just what is in the title without hovering bar.)

    Thank you!

    John

    AHA, I think it's a view tabbed vs thing windowed mode...

    I do not think that trying to change the way you manage your documents, well that--most people like one way or the other and stick with it.

    -Christmas

  • Adding file name of the Document to stamp Script

    Hello

    I have the following script went into the properties of "custom calculation script" a custom stamp.

    Event.source.source.documentFileName = Event.Value;

    This script works very well and the place of the file name of the document on the stamp.

    for example the document is called 6781202 Rev establishing and this appears on the stamp in the document.

    However the revision and the file extension should not be on the stamp

    Can anyone help to modify the script to place the first part of the name of the file only on the stamp

    for example the modified script to display the file name of the document as 6781202.

    This script should be used on multiple files and any help would be most appreciated.

    Thank you very much.

    Replace
    Event.source.source.documentFileName = Event.Value;
    with
    firstWord = event.source.source.documentFileName.split("");
    FirstWord = Event.Value [0];

  • Get the path of the active document from Photoshop

    It works in Photoshop and Bridge script (Javascript)

    var myPath = activeDocument.name;

    Tester.PSD

    This only works in Photoshop script (JavaScript), but not in the bridge.

    var ProcessFolder = activeDocument.path

    actually stops the script, without error or warning.

    How can I get the path to the file in the active document in Photoshop through Bridge?

    Thank you!

    Hello

    You can use BridgeTalk to communicate between applications

    In this case, there is the code and you must run it from the bridge to get the information you need for photoshop:

    // run this from Bridge to get the path of the active document
    // if photoshop is not running, it gives that message
    // if photoshop is Busy, it gives that warning
    // if photoshop has any images opened, it avoids getting the path and warn you
    
    pathFromPS();
    
    function pathFromPS() {
        var bt = new BridgeTalk;
        bt.target = "photoshop";
        bt.body = '(app.documents.length > 0) ? app.activeDocument.path : "No active images";';
        bt.onResult = function (resObj) {
            activePath = resObj.body;
        }
        if (BridgeTalk.getStatus (bt.target) == 'IDLE') {
            bt.send(3);
        } else {
            activePath = (BridgeTalk.isRunning(bt.target)) ? "[Busy]" : "[Not Running]";
        }
        return activePath;
    }
    
  • Digitally sign all Signature fields in the Active Document

    I have a script that will sign a unique digital signature with the name of the field field.

    I need to see the script so that it will sign in fields many/any signature in the active document without having to put the name of the field in the script, as domain names vary with each document.

    Can someone advise please how do I change the script to sign all the fields in the active document, regardless of the domain name?

    function myOtherTrustedFunction()
    {
    app.beginPriv ();
    Get and connection to the Security Manager

    var oSigHdlr = security.getHandler ("Adobe.PPKLite");
    oSigHdlr.login ("123", "/ c/Documents and Settings/name/Application Data/Adobe/Acrobat/10.0/Security/FirstNameLastName.pfx");

    Signature properties configuration

    chk var = this.getField ("Checked");
    If (chk! = null) {}

    Apply the Signature and store it in the original file

    bRtn var = chk.signatureSign ({oSig:oSigHdlr, bUI:false, oInfo: {password: "123"}});
    }

    app.endPriv ();
    }

    Any help will be most appreciated.

    How about this:

    var myEngine = security.getHandler("Adobe.PPKLite");
    myEngine.login("123", "/c/Documents and Settings/name/Application Data/Adobe/Acrobat/10.0/Security/FirstNameLastName.pfx");
    
    for (var i = 0; i < numFields; i++) {
    
        // Get the current field object
        var f = getField(getNthFieldName(i));
    
        // If it's a signature field and not already signed, sign it
        if (f.type === "signature" && !f.value) {
    
            // Sign the field
            f.signatureSign(myEngine, {password: "123"});
    
        }
    }
    
  • What is the correct syntax to a PDF form file name in the subject line of an e-mail. Doc Javascript?

    The name of the file is not part of any form field. The name of the file will be also unique whenever the form is used. I also want the name of the file that will be followed by the expression 'evidence' returned by the customer, as in:

    Topic: Proof of Papa Murphys SALEM 8 - 30.pdf returned by the customer

    Here is my existing script, but I need to know the syntax to get the PDF file name added in the subject line.

    this.mailDoc ({bUI: true, cTo: "[email protected]", bassujetti: "proof returned by the customer", CMSG: "attached is the signed evidence.}) Please send to the graphics dept '});

    I'm not very familiar with Javascript so have tried to reconstitute it.

    Unfortunately, there is only so much you can google to get a working solution, I would suggest that you get at least a little familiar with JavaScript (there are a lot of good tutorials and books available). If you want an introduction to Acrobat JavaScript, have a look here: Beginning JavaScript for Adobe Acrobat

    There is a property of the document object that returns the name of the file. You can read the property of Doc.documentFileName here: DC Acrobat SDK Documentation

    In the simplest implementation, you can use this to enter the file name in the subject line:

    this.mailDoc({bUI: true, cTo: "[email protected]", cSubject: this.documentFileName,  cMsg: "Attached is the signed proof. Please forward to the graphics dept"});
    

    If you want to add more information that just the file name, you will need to assemble your subject line by using variable elements and string constants. Something like this works:

    this.mailDoc({bUI: true, cTo: "[email protected]", cSubject: "The filename is " + this.documentFileName,  cMsg: "Attached is the signed proof. Please forward to the graphics dept"});
    
  • How to add a character style in the active document

    Hi experts

    How to create a character style in the active document.

    How to make the script work.

    Thank you

    Respect of

    John

    var myCharacterStyle;

    myDocument var = app.activeDocument;

    var myCharacterStyle = myDocument.characterStyles.add({name:"c"});)

    myCharacterStyle.strikeThru = true;

    myCharacterStyle.strokeColor = 'Black ';

    myCharacterStyle.add)

    There is not much to say about your code. Only the last line would cause a problem. A possible hiccup is also on the fact that the style may already exist when you want to add.

    myDocument var = app.activeDocument;

    var myCharacterStyle = myDocument.characterStyles.item ('c');

    ! myCharacterStyle.isValid & myCharacterStyle = myDocument.characterStyles.add({name:"c"});)

    myCharacterStyle.strikeThru = true;

    myCharacterStyle.strokeColor = 'Black ';

  • How to print ONLY the active document?

    Whenever I go to file/print program PSE 9 darn all working files sends in the tray of the printer. I searched online for 2 hours, now looking for an answer.

    I enjoy working with several to several files in the 'bin' and prefer to print only the active file, I am currently working on without having to close the "working files" before I can print. How can I print ONLY the active document or file in the location of project? Please help, I upgraded from PSE 3 PES 9 and really like the updated features, but what a pain in the neck by default becomes the best of me.

    Select it in the trash before calling to the top of the print window. If nothing is selected, everything happens in the print window.

  • Is there a change in FF8 for file names in the format UTF-8 sent as an attachment

    I send files with non-ASCII characters in their file names in the browser.

    I use the Content-Disposition: attachment; the file name * = "utf - 8" myfilename. "

    It worked well for FF7 and lower grades.

    In FF8, the file name is ignored (Linux and Windows).

    Is this a bug? Is there a better way to solve this problem?

    A good place to ask for advice on web development is the forum mozillaZine evangelism/Web development Standards.

    Aid to this forum are better informed on issues related to web development.

    You must register on mozillaZine forum site to post in this forum.

    See http://forums.mozillazine.org/viewforum.php?f=25

  • When I opened the window "save the Page under", the drop-down box file name indicates the files that have been saved a long time ago. It is not cleared by a function 'clear history' that I can find. How can I erase this?

    1. Question

    When I opened the window "save the Page under", the drop-down box file name indicates the files that have been saved a long time ago. It is not cleared by a function 'clear history' that I can find. How can I erase this?

    Hello.

    I think this is a related issue of Windows, because it is the Manager to save the windows file that we are talking about here (right?). You should contact Microsoft for help with this one, I think. You expect to be able to delete entries simply by touching delete on your keyboard when they are concentrated (that is how it goes for the removal of the form entries specific autocomplete in Firefox), but I have not tried.

    I'm sorry I can't be more helpful.

  • How to change a file name in the Photos? (no title)

    I know how to change the title of a photo in the Photos.  But I do not see how you change a file name.  Can anyone help?

    Photos will not change an imported file.  The original master image file is preserved. You can't even change the file name.

    To change the name of the file, export the Photos photo: file > export, and then specify a different file name in the export Panel.

    Re-import the renamed picture, then delete the first version you imported.

  • adding multiple files *.csv while retaining the original file name in the first column

    Hi guys Cela made some time.

    I am trying to add several *.csv files while retaining the original file name in the first column, the real data set is about 40 cases.

    file a.csv contains:
    1, line an a.csv
    2, line 2 in a.csv

    file b.csv contains:
    1, line a b.csv
    2, line 2 in b.csv

    result output.csv is:

    I would like this:
    a.csv, 1, the line in a.csv
    a.csv, 2, line 2 in a.csv
    b.csv, 1, the line in b.csv
    b.csv, 2, line 2 in b.csv

    Any suggestions to speed up my hobbling attempts would be aprieciated

    Thank you

    -SS

    What you could do is given in attachment.

    Started with 2 files:

    a.csv

    copy of a.csv

    Both with data:

  • Can I change the file name of the .bar file

    Hello

    I built an application in Release for device mode.  He prodcued a filenamed bb10app.bar. Is it possible to change the file name to tell xyz.bar after it is built.  It is an application internal meaing only avaiable to our staff.  If I do not file name change how will I know what app it is. Given that bb10app.bar seems to be a default file for any application name.

    Thank you

    Joe

    Yes, you can change the file name of the file BAR, just keep the .bar extension and you shouldn't have any problems.

Maybe you are looking for