Insert filename

Hello,
Is it possible to insert a document's filename into the text automatically in pages ?
Regards
Andreas

Andreas,
Yes, in '09, not sure about '08. Not available in '13.
Here's an '09 Screen Shot:
Now, I'm not sure what you mean by "automatically", but you don't have to type it manually, and it auto-updates if you rename the file.
Jerry

Similar Messages

  • Insert filename in master slide

    Can somebody tell me how I can insert the filename into the master slide (like you can insert filename in Numberq and Pages) so that when I change my filename it automatically changes also in the master slide ? Many thanks for your help.

    This feature is not available "in thebox"
    You may go to my iDisk:
    <http://idisk.me.com/koenigyvan-Public?view=web>
    and download:
    foriWork:for_Pages:paste_thepath.zip
    It contain two scripts.
    One which pastes the pathname at the Insertion point.
    One which insert the pathname at the end of the document.
    I apologize but at this time I don't know the way to insert at the insertion point
    Yvan KOENIG (from FRANCE lundi 25 août 2008 12:22:02)

  • No longer able to insert filename into a document in the new pages

    Does anyone know if the ability to insert the filename into the document has been eliminated or if we just have to get to it another way? Used to be able to go to INSERT>FILENAME but that seems to have disappeared.
    Thanks
    AJ

    It does cause problems in a number of circumstances.
    In this forum alone, there are several threads with many users who used Setup Assistant or Migration Assistant to transfer their stuff, ended up with lots of duplicate apps because of it, and had great difficulty finding and deleting the duplicates.
    There have also been folks whose apps did't get updated, and Adobe apps that wouldn't run at all.
    Again, it depends on the apps and circumstances.

  • Inserting filename and page numbers into multiple PDF files?

    Have since seen this thread, BUT still interested in the syntax of the code
    to insert filename and page # into multiple files:
    http://forums.adobe.com/thread/951925?tstart=0
    Good Evening (GMT!)
    I have approx 100 PDFs with one or two pages in each, they are English translations
    of Russian language test certificates and the formatting/feel of the originals is lost in
    the translations. The only real link between the two sources is the "_RUS" and "_ENG"
    filename suffixes and the common leading filenames otherwise. Thus I need to maintain
    a record of the filename in any page I print off, should there be a need to refer back to
    the original if the translation is open to artistic licence.
    I have a script (below) that happily adds a page x/y and filename into the active file,
    what I would like is to be able to do this insertion into multiple files as defined by a
    portfolio or a selection via a select files dialogue box
    I am quite out of my depth now as my past skirmishes with JavaScript have set
    cookies and tweaked a few other browser doodads in webauthoring
    Any help most appreciated on this one...
    Kind Regards
    Dr B
    Southampton
    UK
    NB the filename inserted may be corrupted as a result of my last tweakings
    will sort that one out ASAP....
    ================================
    // SetRemoveFooter
    // Modified as marked
    // Menu item generation
    app.addSubMenu({ cName: "Footer",cUser: "Set/Remove Complex Footer", cParent: "File", nPos: 20 });
    app.addMenuItem({ cName: "Set Filename", cParent: "Footer", cExec: "SetFooter(1)"});
    app.addMenuItem({ cName: " -> Set Date .... centered", cParent: "Footer", cExec: "SetFooter(2)"});
    app.addMenuItem({ cName: " -> Set Date .... right", cParent: "Footer", cExec: "SetFooter(3)"});
    //add page x of y
    app.addMenuItem({ cName: "Set Page ", cParent: "Footer", cExec: "SetFooter(4)"});
    app.addMenuItem({ cName: "Set Both", cParent: "Footer", cExec: "SetFooter(5)"});
    app.addMenuItem({ cName: "-------------------------------", cParent: "Footer",cExec: "{}"});
    app.addMenuItem({ cName: "Remove Both", cParent: "Footer", cExec: "RemoveFooter(5)"});
    app.addMenuItem({ cName: "Remove Date Time (Filename)", cParent: "Footer", cExec: "RemoveFooter(1)"});
    app.addMenuItem({ cName: "Remove Page", cParent: "Footer", cExec: "RemoveFooter(4)"});
    //=====================================================================================
    //Set/remove Footer
    function SetFooter(ARG)
    var re = /.*\/|\.pdf$/ig;
    var FileNM = + this.path.replace(re,"")+".pdf";
    var Path = this.path;
    var AcDate = new Date();
    var AcDateFormat = "dd/mm/yyyy"
    var Box2Width = 100
    for (var p = 0; p < this.numPages; p++)
    var aRect = this.getPageBox("Crop",p);
    var TotWidth = aRect[2] - aRect[0]
    if (ARG<=3 || ARG==5)
    {var fd = this.addField("xftDate", "text", p, [30,15, TotWidth-30-30,30]);
    //print output?
    fd.value = util.printd(AcDateFormat, AcDate) + " (" + FileNM +")";
    // TEXT SIZE SETTING
    fd.textSize=12; fd.readonly = true;
    if (ARG==1){ fd.alignment="left" };
    if (ARG==2){ fd.alignment="center" };
    if (ARG==3){ fd.alignment="right" };
    if (ARG==4 || ARG==5)
    {var bStart=(TotWidth/2)-(Box2Width/2)
    var bEnd=((TotWidth/2)+(Box2Width/2))
    var fp = this.addField(String("xftPage"+p+1), "text", p, [bStart,30,bEnd,15]);
    // print output?
    fp.value = "Page: " + String(p+1)+ "/" + this.numPages;
    // TEXT SIZE SETTING
    fp.textSize=12; fp.readonly = true;
    fp.alignment="center";
    //==========================================================================
    function RemoveFooter(ARG)
    if (ARG<=3 || ARG==5) {var x = this.removeField("xftDate");}
    if (ARG==2 || ARG==5) {for (var p = 0; p < this.numPages; p++)
    var x = this.removeField(String("xftPage"+p+1)); }
    will

    Putting this in a batch file within the automation function of Acrobat
    delivers the goods, I need to investigate the formatting of the output to
    get them to line up, have taken the middle ground and gone for a central
    position for the page x/y text...... some lines are redundant
    Dr B
    ===========================================
    var re = /.*\/|\.pdf$/ig;
    var FileNM = this.path.replace(re,"")+".pdf";
    var Path = this.path;
    var AcDate = new Date();
    var AcDateFormat = "yyyy/mmm/dd  HH:MM"
    var Box2Width = 50
    for (var p = 0; p < this.numPages; p++)
    var aRect = this.getPageBox("Crop",p);
    var TotWidth = aRect[2] - aRect[0]
           var fd = this.addField("xftDate", "text", p, [30,15,
    TotWidth-30-30,30]);
           fd.value =  FileNM;
           fd.textSize=12; fd.readonly = true;
           fd.alignment="left";
    var bStart=(0);
    var bEnd=(TotWidth);
           var fp = this.addField(String("xftPage"p1), "text", p,
           fp.value = "Page: " + String(p1) "/" + this.numPages;
           fp.textSize=12;  fp.readonly = true;
           fp.alignment="center";

  • Insert filename and path?

    Hi,
    Can you insert the filename and path into a footer in a ID document same as you would with a Microsoft Word document?
    Thank you,
    Barb

    With CS3 use a text variable.
    Bob

  • Insert filename in Pages document

    When I was working with Word for Windows there was an insert feature that allowed me to insert the path and filename in my documents. Very helpful since I do a lot of correspondence and keeping track of letters can get hectic. I've looked high and low and don't see that in Pages.

    This feature is not available "in thebox"
    You may go to my iDisk:
    <http://idisk.me.com/koenigyvan-Public?view=web>
    and download:
    foriWork:for_Pages:paste_thepath.zip
    It contain two scripts.
    One which pastes the pathname at the Insertion point.
    One which insert the pathname at the end of the document.
    I apologize but at this time I don't know the way to insert at the insertion point
    Yvan KOENIG (from FRANCE lundi 25 août 2008 12:22:02)

  • Inserting filename in a document

    How do I insert a filename into a document header?  Or replace a filename with an updated, changed filename? Using new Pages on iMac.

    I found this in Help in the Pages toolbar.  It is annoying that one has to type in the filename, but at least one can get the filename in the footer
    Add headers and footers
    Move the pointer over the top or bottom of the page until you see the header or footer area, then click inside it.You can use just one or any combination of the three fields for your header or footer.If you’re having difficulty seeing the header and footer area, choose View > Show Layout (from the View menu at the top of your computer screen). If you still don’t see the header or footer area, click Document in the toolbar, click Document, then make sure the Header and Footer checkboxes are selected.
    Enter your text and page numbers (optional).Depending on the existing header and footer content, and whether you have more than one section in your document, you may see an option to start a new header or footer.

  • Insert Filename into IPTC Title metadata

    Good Morning,
    I am wondering if there is a way to insert the filename of an image into the IPTC title metada.
    Below is an example of our file name system.
    (ex. YYMMDD-M-TI822-001)
    The only part that changes is the 3 digit number at the end.
    How would I go about writing a script to have Bridge automatically do it or is there one already writen that I can download and use?
    Thank you for your help.

    Change:
    md.Title = thumb.name;
    To:
    md.Title = decodeURI(thumb.name).replace(/\.[^\.]+$/, '');

  • How to script Illustrator to insert filename in to textpath?

    Hello everybody!
    I'm new to the scripting technology, and i wonder if its possible to create a java or apple script to do the following:
    We are forced to name our thousands of illu-files on a specific way, that's ok, but: we have to insert the filename as text in to the illustrator-file, so that we can find the file through a hardcopy.
    We are doing this manualy and this goes often wrong, so we have to reopen the file, change the text and save and print it again.
    Can anybody give me a hint or even better show me a piece of code how to insert the filename of the actual illustrator-file in the active cursor-position.
    My thanks!
    Regards
    Gregor

    This snippet of code will add the file's name at the bottom-left corner of the illustrator. You can have this code run on an entire folder of files automatically or change the position\contents of the text.
    // CODE BEGIN
    var pointTextRef = app.activeDocument.textFrames.add();
    pointTextRef.contents = app.activeDocument.name;
    pointTextRef.top = 20;
    pointTextRef.left = 10;
    // CODE END

  • RH inserts filenames as title elements (instead of the actual chapter titles)

    Hi all,
    I am not sure whether this is a bug or can be fixed. When I import from FM using chapter title paragraph styles for breaking the content into topics, then RH inserts the resulting file names into the topic as <title> elements and not the title names themselves.
    This is no problem as long as you can use the default naming convention (i.e. heading and filename identical). For some output formats hovever it is necessary to use a different naming convention to avoid non-english characters in file names. In such a case I use <n> as naming, resulting in files that have ascending numbers as file names.
    Now I receive e.g. a topic with the h1 heading "This is my topic", the filename "123.htm" and the HTML title "123". That is very bad because in the search results e.g. in Javahelp the HTML titles are displayed, resulting in unusable search results.
    Do you have any suggestions how to avoid this dilemma?
    Robert

    I thought you could control that by using something in a marker – there was some little-known feature that allowed you to control what RH called the filename or or topic title (I forget which) based on a special marker & marker text in FM. You’ll need to dig around for it in either the forum or the TCS blog or the help.

  • Inserting Filename into Header/Footer

    Hi everyone,
    I'm looking for a way to enter the filename (without the file extension) into the header of my document.  From the research I've been doing it seems the only way to do this would be to write some sort of javascript, or pay for a 3rd party plug-in with a ton of features I'll never need or use.  You would think Adobe would have made this pretty simple to do, it seems I've seen a lot of people asking for it for various reasons.
    Is there a simple way to do it?  Or am I totally out of luck.  I was hoping to be able to do it for batch processing, but I think my options are limited, as it seems the only way might be to write a javascript and insert that into the batch processing process.
    Thanks.

    Yeah I'm looking for a way to do it in batch automaticaly.  I could do it manually but I have potentialy thousands of documents.
    I don't know how to write javascript so would there be an easy way of creating a script?

  • Batch insert filename in textpath script crashes Illustrator

    Hi everyone!
    First off: I am not a programmer. Just playing around with code and trying to get it to work for a specific task:
    Here is a script made for the purpose of inserting a text with the file name in over 600 pdf files. This is suppose to work on all files in a selected folder.
    The problem: Illustrator crashes.
    A first test code worked but after a few edited files Illustrator crashed, so I tried to introduce a delay after each save in order to slow down the batch process.
    $.setTimeout(function () {sourceDoc.close(SaveOptions.SAVECHANGES)}, 1000);
    Unfortunately I did not save the working (almost working ) first test code.
    No idea what to do next. The code works if I delete this line: sourceDoc.close(SaveOptions.SAVECHANGES);
    Here is the complete script:
    var destFolder, sourceFolder, files, fileType, sourceDoc, layers, writeText, finLabel;
    // Select the source folder.
    sourceFolder = Folder.selectDialog( 'Select the folder with Illustrator files you want to convert to PNG', '~' );
    // If a valid folder is selected
    if ( sourceFolder != null )
    files = new Array();
    fileType = prompt( 'Select type of Illustrator files to you want to process. Eg: *.ai', '*.pdf' );
    // Get all files matching the pattern
    files = sourceFolder.getFiles( fileType );
    if ( files.length > 0 )
    for ( i = 0; i < files.length; i++ )
        sourceDoc = app.open(files[i]); // returns the document object
        layers = unlock();
        writeText = getFilename();
        finLabel = remText();
        sourceDoc.close(SaveOptions.SAVECHANGES);   //if save command line is deleted the code works   WTF???
        $.setTimeout(function () {sourceDoc.close(SaveOptions.SAVECHANGES)}, 1000); // still crashes using delay ...
    //alert( 'Files are saved as PNG in ' + destFolder );
    else
    alert( 'No matching files found' );
    function unlock()
       //get the total number of layers in the active document
    doc = app.activeDocument;
    var totalLayers = doc.layers.length;
    //looping on layers to create one artboard per layer
    for ( var i = 0 ; i < totalLayers ; i++){
        var currentLayer = doc.layers[i];
        //We don't want to deal with hidden layers
        if(currentLayer.visible == false) continue;
        //Unlock the layer if needed
        currentLayer.locked = false;
    function getFilename()
    // Write text
    var pointTextRef = app.activeDocument.textFrames.add();
    pointTextRef.contents = app.activeDocument.name + "\n" + "YBS";
    pointTextRef.top = 0;
    pointTextRef.left = 0;
    app.activeDocument.textFrames[0].textRange.characterAttributes.textFont=app.textFonts[31];
    function remText()
    // This works for search and replace :))))))
        var active_doc = app.activeDocument; 
        var search_string = /_Template.pdf/gi; // g for global search, remove i to make a case sensitive search 
        var replace_string = ''; 
        var text_frames = active_doc.textFrames; 
        if (text_frames.length > 0) 
            for (var i = 0 ; i < text_frames.length; i++) 
                  var this_text_frame = text_frames[i]; 
                   var new_string = this_text_frame.contents.replace(search_string, replace_string); 
                   if (new_string != this_text_frame.contents) 
                            this_text_frame.contents = new_string; 
    Any ideas about what makes Illustrator crash?
    Note: The application crashes after opening the first file.
    Thanks for helping out!

    Thanks a lot Carlos!
    After deleting line 23: 
    $.setTimeout(function () {sourceDoc.close(SaveOptions.SAVECHANGES)}, 1000);
    the code worked on 499 files in one batch
    Also Turns out Illustrator kept crashing because of a corrupted pdf file.

  • Upload and Resize Image not inserting filename in database

    I have a form that I created using the insert record form wizard. One of the fields is a file field and my form enctype is set to multipart/form-data. I then used the upload and resize image behavior and set the parameters. When testing the form the file uploads to the correct directory but no entry is made into the database for that particular field. The other fields are entered into the database just fine. If it helps, here is the code generated before the  tag:
    <br />
    <br /><?php require_once('../../Connections/test.php'); ?>
    <br /><?php<br />// Load the common classes<br />require_once('../../includes/common/KT_common.php');<br /><br />// Load the tNG classes<br />require_once('../../includes/tng/tNG.inc.php');<br /><br />// Make a transaction dispatcher instance<br />$tNGs = new tNG_dispatcher("../../");<br /><br />// Make unified connection variable<br />$conn_test = new KT_connection($test, $database_test);<br /><br />// Start trigger<br />$formValidation = new tNG_FormValidation();<br />$tNGs->prepareValidation($formValidation);<br />// End trigger<br /><br />//start Trigger_ImageUpload trigger<br />//remove this line if you want to edit the code by hand <br />function Trigger_ImageUpload(&$tNG) {<br />  $uploadObj = new tNG_ImageUpload($tNG);<br />  $uploadObj->setFormFieldName("picture");<br />  $uploadObj->setDbFieldName("picture");<br />  $uploadObj->setFolder("../images/");<br />  $uploadObj->setResize("true", 120, 0);<br />  $uploadObj->setMaxSize(1500);<br />  $uploadObj->setAllowedExtensions("gif, jpg, jpe, jpeg, png, bmp");<br />  $uploadObj->setRename("auto");<br />  return $uploadObj->Execute();<br />}<br />//end Trigger_ImageUpload trigger<br /><br />// Make an insert transaction instance<br />$ins_team = new tNG_insert($conn_test);<br />$tNGs->addTransaction($ins_team);<br />// Register triggers<br />$ins_team->registerTrigger("STARTER", "Trigger_Default_Starter", 1, "POST", "KT_Insert1");<br />$ins_team->registerTrigger("BEFORE", "Trigger_Default_FormValidation", 10, $formValidation);<br />$ins_team->registerTrigger("END", "Trigger_Default_Redirect", 99, "../team.php");<br />$ins_team->registerTrigger("AFTER", "Trigger_ImageUpload", 97);<br />// Add columns<br />$ins_team->setTable("team");<br />$ins_team->addColumn("id", "NUMERIC_TYPE", "POST", "id");<br />$ins_team->addColumn("sort", "NUMERIC_TYPE", "POST", "sort");<br />$ins_team->addColumn("name", "STRING_TYPE", "POST", "name");<br />$ins_team->addColumn("title", "STRING_TYPE", "POST", "title");<br />$ins_team->addColumn("description", "STRING_TYPE", "POST", "description");<br />$ins_team->addColumn("picture", "FILE_TYPE", "FILES", "picture");<br />$ins_team->setPrimaryKey("id", "NUMERIC_TYPE");<br /><br />// Execute all the registered transactions<br />$tNGs->executeTransactions();<br /><br />// Get the transaction recordset<br />$rsteam = $tNGs->getRecordset("team");<br />$row_rsteam = mysql_fetch_assoc($rsteam);<br />$totalRows_rsteam = mysql_num_rows($rsteam);<br />?>

    If the reason is about memory, warning message should be happened when upload the image, because "show thumbnail" means resize at second time, how come you failed to resize the picture that system let it upload succeed at the first time by the same resize process?
    upload procedure
    a.jpg: 2722x1814, 1.2mb
    upload condition: fixed width 330px, 1.5mb
    "upload and resize" a.jpg -> file upload -> "resize engine" -> passed (but not work and no warning message)
    "show thumbnail" a.jpg -> "resize engine" -> failed (not enough memory)
    it doesn't make sense.
    and you miss an important key point, I upload the same picture myself, and resize work, so I said it happened at random, and that's why I am so worried.

  • How to insert filename as column in external table.

    I have an external table that is made up by number of different files. I would like to add a new column in the table to store the actual external filename. How can this be done?
    thanks in advanced

    That's going to be a problem, then. The ISO 8859-1 character set doesn't support that character, so you cannot store a ™ in a CHAR or VARCHAR2 column in your database.
    Potentially, you could use an NCHAR or NVARCHAR2 column, depending on your national character set. Using the national character set, though, can cause other problems, particularly for front-end applications that may not fully support those data types.
    You could also potentially change your existing character set to something that does support that character, but that may be a rather involved sort of change.
    Justin

  • Inserting filenames and pathnames into headers

    According to Pages '08 help:
    "Using Headers and Footers
    Add headers and footers to give your documents page-by-page identity by showing the date and time, page number, or filename and pathname."
    OK, I wish to add automatically updating filenames and pathnames in my headers.
    Except there appears to be no way to do it?
    Can you help?
    Thanks

    Hello
    Here it is:
    -- [SCRIPT]
    tell application "Pages" to set u to path of document 1
    (* "/Volumes/AluIce2504vide/autour d'iWork'08/documents_Pages/La cigale et la fourmi.pages" *)
    set ky to "/Volumes/"
    if u starts with ky then
    set u to text (1 + (count of ky)) thru -1 of u
    (* "AluIce2504vide/autour d'iWork'08/documents_Pages/La cigale et la fourmi.pages" *)
    else
    if character 2 of (0.5 as text) is "," then
    error "Impossible de recoder le chemin" & return & "«" & u & "»" number 701
    else
    error "Can't parse the path" & return & "“" & u & "”" number 701
    end if
    end if
    set u to POSIX path of u
    (* "/AluIce2504vide:autour d'iWork'08:documents_Pages:La cigale et la fourmi.pages" *)
    set u to text 2 thru -1 of u
    set the clipboard to u
    (* "AluIce2504vide:autour d'iWork'08:documents_Pages:La cigale et la fourmi.pages" *)
    -- [/SCRIPT]
    Save it as an application.
    yourStartupDisk:Users:yourAccount:Library:Scripts:Applications:Pages:
    maybe you will have to create the Pages folder and even the Applications one.
    Select the document in which you want to paste its pathname
    Execute the script from the System's Scripts menu
    Paste where you want.
    Yvan KOENIG (from FRANCE mercredi 28 novembre 2007 18:40:01)

Maybe you are looking for

  • Urgent3

    Can anybody help on below questions with a view of fresher to software as well as fresher to BW …points assured for each question? 1)     How many ways we assign deltas to an info package? BW side? 2)     What are type of deltas we assign R/3 side du

  • There is a Mura on my rMBP 15". Please advice

    Hi, My new macbook (3 days old) has a mura. I live in India and got it from the USA. Please advice what should I do. It's really irratating that you pay a premimum and then this is what you get. i thought that i wasnt going to buy a new laptop for at

  • My Nano is frozen

    Does anyone know how to unfreeze the nano (2GB). Closed down my computer with nano still attached, unplugged it and froze. Display light stays on with 'Now Playing' screen on. Have tried everything shown in manuals to reset and now my computer won't

  • Data migration @ Copy Express

    Hi guys, I want to migrate the configurations, master data & definitions from the test database to the production database. But I face issues with Copy Express during the migration. During the copy process, CE hangs up or takes a long time and then g

  • Document will no open, pages shuts down

    When I tap a particular document I want to open, the screen flashes back to home screen. How can I get the info on the document?  This happened after I imported a photo from my photos located on the iPad.  I don't need the photo, just the document.