Exctract information from the title of the document

Hello all,
Not sure my post should go in this topic...
I need to exctract information from the name property of my PDF document, and put that information it in the footer of my document:
exemple :
My doc name is : S01_Blabla.pdf
I need to do a script that could put as a footer "S01" on all pages of my document.
Is there any way to do that in acrobat?
Thanks
Fabien
PS : I'm working on Acrobat V9 pro

Thanks for this useful answer,
Being a beginner in this acrobat Javascript dev, I have one more qestion :
Is this script associated to one document? or can it somehow be stored in the Acrobat interface to be run on any new document I open, in a similar way as what is done for sequences?
Thanks
Fabien

Similar Messages

  • Changing the title of multipel documents

    Hi there Apple fans.
    I was wondering if there is a way -- with Applescript (or some other tool) -- to change the title of multiple documents.
    You see I have about 800 "songs" from and Audiobook. And they are called *"The Dark Tower VII - The Dark Tower 001..002..003.. (all the way too 800)"*. It's like this, The Dark Tower is a series, and this is the seventh book, which is also called The Dark Tower.
    And what I want to do is to have them called just *"The Dark Tower 001..002..003"*.
    This is annoying because when I am viewing the files in my iPod, only half the name is shown, *"The Dark Tower VII"* not the file number. So it is a hard time trying to find where you are, which file you are on.
    For Finder documents this is easily done with Automator. Just rename and then use sequence. But there is no such option for iTunes.
    I am almost positive that there should be some way to do this with a rather simple Applescript script. Unfortunatly, I have almost no knowledge of scripting.
    If anyone has any idea please post them here.
    Thanks.

    Maybe you did not understand.
    I want to go from this:
    My Audiobook - Track nr 1
    My Audiobook - Track nr 2
    My Audiobook - Track nr 3
    My Audiobook - Track nr 4
    My Audiobook - Track nr 5
    My Audiobook - Track nr 6
    To this:
    Track 1
    Track 2
    Track 3
    Track 4
    Track 5
    Track 6
    Understand? Please help.

  • HT2646 How can I stream information from my pc through the apple tv box to my television

    How can I stream information from my pc through the apple tv box to my TV

    If you want to mirror you will need to use something like Airparrot

  • How can I have the title of the document be in the email subject line automatically when sending?

    How can I have the title of the document be in the email subject line automatically when sending?

    It can be done if you use a script, like this one:
    this.mailDoc({cTo: "[email protected]", cSubject: this.title});

  • I was down loading music from my list of songs from my computer, the playlist on my iPod shows the title of the song, but there is no music, and the iPod shuffles to the next song

    I down loaded songs from my playlist off my computer to my iPod, the playlist on my iPod shows the title of the song, but no music plays and my iPod shuffles to the next available song. I down loaded about 300 songs at once, was that to much at one time ? How do I get those songs on my iPod without duplicating song titles on the playlist? Plus I have a couple of song duplications on the playlist, can't figure out how to remove them.

    If iTunes purchases, delete and redownload by:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store
    Otherwise delete and resync if they play OK in iTunes on the computer

  • I have an iPad 2. It synced all my information from my Android to the ipad.  I cannot get my calender on my ipad to sync with iCloud.  Can anyone help?

    have an iPad 2. It synced all my information from my Android to the ipad.  I cannot get my calender on my ipad to sync with iCloud.  Can anyone help?

    Okay, this is interesting, because I was under the impression that FOR IOS DEVICES, contacts are NOT included in a backup, since they are already on icloud (in the contact database).  And since you erased the contacts, then they are gone for good.  One recommendation I've read about is, assuming you have a computer like a Mac also connected to the same icloud account, you can get the contacts back from a backup of the computer, like Time Machine.  However, I don't know where you'd look for that file or files (even though the contacts are stored centrally on icloud, I'm guessing they are also stored locally in a cache file).
    I think another suggestion made here (IIRC) is to turn off syncing of contacts (on the device), then do a restore.  Since there's no sync, icloud's empty contact database will not overwrite the local contacts on the deviced.   Again, I may not be remembering correctly.  Some of these older posts about this same problem were some time ago.
    I'd welcome anyone who really knows the details on this to add to the discussion here.  This is an issue faced by many posters.

  • I'm selling my early 2011 MBP because I just bought a iMac. Could someone please tell me how to remove all my information from it but leave the OS working. Thanks so much.

    I'm selling my early 2011 MBP because I just bought a iMac. Could someone please tell me how to remove all my information from it but leave the OS working. Thanks so much.

    How do I securely delete data from the machine?
    Erase, formatting, OS X installs on Mac's

  • Hi,my system is Mac OS X v 10.5 Leopard the problem is that when click on a file, immediately a box appears around the file and the title of the file is read !so how is it possible to escape from the voice?Thank you for your advice

    Hi,when click on a file, immediately a box appears around the file and the title of the file is read !so how is it possible to escape from the voice?Thank you for your advice

    Turn off Voiceover!
    System Preferences/Universal Access

  • HT5557 Is it possible to display the title of the book or PDF when viewing them in the library? I can only see a title if my PDF's first page contains the title.

    I would like to be able to display the title of the PDF or book while in library mode. In iTunes, you can click and hold on the song to get the full title information. I would like to see the same feature in iBooks if it doesn't already exist.

    You can omit the title altogether in the URL (together with the succeeding slash, of course). For example, my own podcast URL in the Store is
    https://itunes.apple.com/gb/podcast/the-sound-of-78s/id166389425?mt=2
    but this works perfectly well:
    https://itunes.apple.com/podcast/id166389425
    Indeed you can even put your own title:
    https://itunes.apple.com/podcast/any_old_title/id166389425
    So it's as simple as that!

  • I made a duplicate copy of an imovie HD project and when I updated the titles on the copy, the video stuttered . I'm using Snow Leopard OSX. The length of the movie increased unexpedtedly too.

    I made a duplicate  of an imovie HD project so I could have two different versions. I tried making the copies both by using File> Duplicate and the Save As command in imovie.
    When I changed the title on the copy, the video stuttered when I played it back.  Also the overall length of the movie increased by about 6 seconds throwing off some sync even though the replacement title was exactly the same length in seconds and frames as the one I replaced.
    any thoughts how to fix this?
    I'm using OSX 10.6.8.
    thanks.

    *24 December 2009*
    *Dear Mac Users:*
    Hello. Thanks to AppleMan1958 for answering my question about how to edit an iMovie project
    on another computer.
    Here is a question related to the process of transferring the iMovie '09 project file from my friend's
    computer to an external drive so that I can edit that project in iMovie '09 on my MacBook Pro:
    How do I know if my Smart Disk FireLite portable external drive is formatted to MAC OS X Extended (journaled)? How I do format this Smart Disk FireLite USBFLB80C to MAC OS X Extended (journaled)?
    When I connect the Smart Disk FireLite to my MacBook Pro via USB, open iMovie '09, and select View
    Events By Disk or rather "Group Events By Disk," an icon for the FireLite external drive appears, but there is a yellow triangle with a black exclamation mark on the icon for the external drive. What does this "warning" mean? There are MP3s of music on the same external drive and they open just fine in iTunes. The one iMovie project file that is already on the drive will not open up in iMovie.
    So, how do I properly format this external drive in order to transfer an iMovie project file from my friend's computer so that I can edit it on my MacBook Pro using iMovie '09?
    Sincerely,
    Corey

  • How to Change Date Format in the Title of the report.

    Hi Everyone,
    I want to change the Format of the Date in the title(Query run Date)taken by report through the variable "&Date" .
    The Format available is DD-MON-YY
    Desired Format is DD-MON-YYYY.
    Please let me know the same as early as possible.

    Hi NP,
    What I try to do is to reformat the default &date inserted into the Title for Discovere Plus and Viewer. When you edit the Title for the report, you can select the date from the Insert dropdown list to display the date when the report was run. The Date (shown &Date in the Title) has a default format of DD-MON-YY. As I have other date parameters displyed in the Title that have the format of DD-MON-YYYY specified by the user, I want to have the &Data in the same format. Please advise me how to achieve this.
    Thank yiou very much,
    J.K.

  • Display Server Name on the title of the WINDOW : Best Way to Implement

    our weblogic is deployed in a clustered environment(group of weblogic instances)(say for eg) Server01,Server02,Server03). Every time the request will go to any one of the weblogic instances. Now i need to display the server name on the title of the IE window.
    Web Application : - Server02(request 1)
    Web Application : - Server03(request 2)
    For that i've followed the following approach.
    <filter>
    <filter-name>AppFilter</filter-name>
    <filter-class>com.src.app.AppFilter</filter-class>
    </filter>
    <filter-mapping>
    <filter-name>AppFilter</filter-name>
    <url-pattern>/*</url-pattern>
    </filter-mapping>
    All request will go thro' the filter.
    In filter, dofilter method of AppFilter, set the server name as below.
    request.setAttribute("HOSTNAME", (" " + InetAddress.getLocalHost().getHostName()));
    In all jsp title,do the following.
    <title>WEB Application <%= request.getAttribute("HOSTNAME") %></title>
    This is working fine. I would like to know, if there's any better way of doing this?

    Thanks for all your replies
    user13118480,
    We have one admin server and 3 managed servers.
    3 managed servers are in different machines(sprd01,sprd02,sprd03).
    we have a big ip configured against these managed servers. we expose only the big ip to the end user.
    Based on load, the admin server will route the request to any one of the managed servers.
    Reason for displaying the server name on window
    The reason for displaying the Server Name (m/c name where managed server is running) on the window , is to help the developers to find out
    the current logs.
    log (app.log - logger file - log4j ) will go to sprd01,sprd02,sprd03.
    now if we display the servername on the window, then we can direct go the machine and look for the logs.
    otherwise,developer has to search for all in all the boxes.(sprd01,sprd02,sprd03)
    Questions:
    --Now i would like here more abt the Host HTTP header.
    *1. is my approach to retreive the host machine name is good? is there any other simple way to get the host name?*
    *2. as per your answer, are you asking me to get the host name from httpheader. request.getRemoteHost()?*
    *3. is there any way i can set the title of the browser window from filter itself instead of setting requestAttribute in filter and reading the same in*
    all the jsp's?
    4. Is there any better way to implement this requirement?
    baftos,
    Reason for using a filter.
    Tomorrow if i dont want to display the machine name in the window,
    then all i need to do , is to change the filter statement as follows, instead of changing all the jsp's.
    request.setAttribute("HOSTNAME", "");

  • I want the title on the browser to change when one of the frames changes in the Frameset.

    I am using frames (please don't tell me off!) and PHP.
    I want the title on the browser to change when one of the
    frames changes in the Frameset.
    Normally the title of the browser comes from the Frameset,
    But I am sure I have seen websites where the title changes
    depending on one of the frames... how is this done?
    C

    Then don't use frames.
    > Normally the title of the browser comes from the
    Frameset, But I am sure I
    > have seen websites where the title changes depending on
    one of the
    > frames...
    > how is this done?
    Show us one and we'll tell you.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "colinwalton" <[email protected]> wrote in
    message
    news:epuu1t$kgv$[email protected]..
    >I am using frames (please don't tell me off!) and PHP.
    >
    > I want the title on the browser to change when one of
    the frames changes
    > in
    > the Frameset.
    >
    > Normally the title of the browser comes from the
    Frameset, But I am sure I
    > have seen websites where the title changes depending on
    one of the
    > frames...
    > how is this done?
    >
    > C
    >

  • How to modify the title of the main BP screen??

    Hi experts,
    We have done an initial load to upload the business partners from R/3 to CRM. All the business partner have benn created as Organizations, although many of them are considered Persons for my customer. We have written a OSS note and SAP has answered that the system works as intended, what means that the standard works in this way. I think must exist a solution by modifiying the BDOC message, or something like that, but we don´t know how to do it. Any suggestion???
    Another alternative is to create a z field that indicates if a business partner is a person although the standard kind of the business partner  has the value '2' (organization). For this, we must to modify besides the title of the screen and shows, for instance:
    "Display Person: 319967" instead of "Display Organization: 319967" althoug the business partbet is dealt as a Organization.
    I have tried to use the event TITLE from BUPT transaction but it doesn´t works or I do something wrong.
    There is any Badi to achieve it?
    I would appreciate any suggestion for both requirements!!
    Thank in advance.
    Best Regards,
    Pedro

    please, have look of the Forum:
    Trasactions screen modification
    it will help you .
    Regards,
    Arjun

  • Changing the title of the Command Window

    How do i change the title of the command window form "C:\Programs\jdk1.2.1\bin..." etc to something more useful like "MyProgram"?
    Many thanks
    Cath

    What I amproposing is that if we all merge on the same chapter and examples then we can ask each other specific questions and all have the same benchmarrk and reference points!!
    I plan to advertize this on other lists and if we all use the same text then we are all the much further ahead instead of having questions from all sorts of text and nobody knowing what the other is doing and having completely different code and examples!!
    What do yu guys think?
    Personally, I am in chapter 8 just staring SWING. But I don't mind going back to the first part to help othere newbies (as long as we have the same text and the examples are from the text).
    For example, I have modified example 8-1, so that instead of just showing colors in the background, the buttons show a photo with text, shows text and changes the background, and will do something else ( don't know what yet)! But the whole thing is still based on the example code on page 323.
    I had some problems trying to figure how to do this... but if we all work on projects that are based on the code examples for the same text, we stand a better chance of all learning faster...
    So Yes, it is a study group using emails or chats...forum.
    The main difference is that if a person needs help we can all share code with them (NOT NECESSARILY DOING THE PROJECT...unless you wan to) but with the same book {Core Java2-Fundamentals or Core Java2- Advanced Programming} and with the help of at least one senior programmer that we have on the thread already ... with the otheres like you that want to join...all using the same book....Then no matter what project you are working on (from the book or work or school) we all have the same text to help each other and to reger each other to.
    Moreover, there never need to be another instance where the answer comes back: "read the tutorial" or check the docuemtation.... Those are good answers if you know what you are lloking for...but sometimes a person may need an example in working code.... and the tutorials don't answer specific questions where a person may not quite understand.
    So,
    why not stop by the New Study group that is going?...you can find us in forum New To Java Technology
    under the thread of "is anyone learning Java using the Sun Microsystems book...."
    In the meantime.... the person that was asking for hel here has not posted anything ... So I wonder if she realy wanted help?
    I will hang out here fopr another day or so and see if she answers my questions to her .. If nt then i will assume that this is a dead thread and I will no longer be here. You know where you can find me....
    phil

Maybe you are looking for