Set document title from windows clipboard contents

Hi Folks!
I have a process which I perform all the time, which leads me to believe that it's a good candidate for scripting. However, my scripting capabilities are only VB stuff and I think this may be beyond that.
Specifically, I print invoices from Quickbooks into PDF files, and the PDF then automatically opens in Acrobat.
Today, I populate the Windows Clipboard while in Quickbooks. Next, I "print" the invoice to PDF, and Acrobat opens with that document. I then choose File->Properties, and paste the contents of the clipboard into the "Title" of the Properties dialog. Finally, I save and close the PDF.
What I'd like: Upon pressing a button on toolbar (I hope this is possible!), I'd like to have the open document's "Title" set to whatever the contents of the Windows Clipboard is, then save and close the PDF document.
Can anyone help with a shell of a script here? I have little to no experience in Acrobat (or javascript) scripting. I find the Adobe docs on this quite confusing, as I don't know whether to be using an external editor (how do I connect the external script to an Acrobat button?) or the internal Javascript Console (again, connect to button)?
Any assistance here would be most appreciated.
thanks in advance

This can't be done with JavaScript in Acrobat, since it has no access to the clipboard.
The only option is an external GUI automation script (like AutoIt).

Similar Messages

  • Batch document title from file name?

    Forgive the newb question on a fairly simple matter.
    I want to create File Info: Document Titles from file names, minus the extension, for about 400 images.
    Is this possible with Batch rename, if so what am I missing?
    Thanks,

    I am unclear how a batch rename will enter data into File Info: Document Title.
    I have never used them but you might look at metadata templates.  Several sites on web on how to set them up and what they will do for you.

  • How can we set page title from resource bundle

    Hi friends ,
    how can we set page title from resource bundle,
    <%--
        Document   : MARC008Music
        Created on : Aug 4, 2008, 6:27:06 PM
        Author     : root
    --%>
    <%@page contentType="text/html" pageEncoding="UTF-8"%>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
    <%@ taglib uri="https://ajax4jsf.dev.java.net/ajax" prefix="a4j"%>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <html>
        <head>
    <title>All Transaction Log Details </title>
          </head>
        <body>
            <f:view>
                <f:loadBundle basename="#{utility.resourceBundle}" var="rb"/>
                <f:loadBundle basename="#{utility.messageBundle}" var="mb"/>
                <h:form>
                </h:form>
            </f:view>
        </body>
    </html>i want set title( All Transaction Log Details ) from resource bundle.

    My problem is solved , Thanking you Sir.
    Thanks & Regards,
    Edukondalu Avula

  • [SOLVED] Setting terminal title from within python

    I know the following commands can set the title of the terminal window:
    unset PROMPT_COMMAND
    echo -en "\033]2;[b]$1[/b]\007"
    However they do nothing if I call them from python using the commands module.
    Is there a way to enable my console python scripts to change the title of the terminal they are running in?
    Last edited by spupy (2009-11-25 19:44:30)

    Procyon wrote:>>> import sys
    >>> sys.stdout.write("\x1b]2;test\x07")
    Thank you very much!

  • How to set document cannot save as in content Management in Portal

    Dear Sir,
    Is it possible to set document in content managment in Portal cannot "save as" in content Management in Portal, because our requirement need cannot save and save in document.
    Please advise.
    thank you and best regards,
    Vimol

    Hi,
    Content Administration -> Portal Content--> double-click the role you want to set priority to- click properties and find Sort Priority.
    Refer this link, it will explain you...
    http://help.sap.com/saphelp_nw04s/helpdata/en/92/3e703e632c7937e10000000a114084/frameset.htm
    Regards,
    Senthil K.

  • Copy paste from windows clipboard to JTextField

    I am making a swing application with a lot of components in it. There are a lot of JtextFields in the application. when i do Ctrl+C from a JTextField and do a Ctrl V in a different JTextField of the same application the text gets copied to the second JTextField. But when i copy something from windows and try to paste it in JTextField it does'nt work. Please guide me. Some other component is eating up the Ctrl C/Ctrl V event or what?
    I tried adding keystroke's to the InputMap of the JTextField but it still does'nt work.
    Kindly guide me. Thanks in advance
    Excerpts from the code:
    JTextField text1 = new JTextField();
    KeyStroke copykeystroke = KeyStroke.getKeyStroke(KeyEvent.VK_C, InputEvent.CTRL_MASK);
    KeyStroke pastekeystroke = KeyStroke.getKeyStroke(KeyEvent.VK_V, InputEvent.CTRL_MASK);
    text1.getInputMap().put(copykeystroke, "copy-to-clipboard");
    text1.getInputMap().put(pastekeystroke, "paste-from-clipboard");

    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.text.*;
    public class CutCopyPaste {
      public static void main(String[] args) {
        Action cut = new TextAction("cut") {
          public void actionPerformed(ActionEvent e) {
            getFocusedComponent().cut();
        Action copy = new TextAction("copy") {
          public void actionPerformed(ActionEvent e) {
            getFocusedComponent().copy();
        Action paste = new TextAction("paste") {
          public void actionPerformed(ActionEvent e) {
            getFocusedComponent().paste();
        JMenu menu = new JMenu("edit");
        menu.add(cut);
        menu.add(copy);
        menu.add(paste);
        JMenuBar menuBar = new JMenuBar();
        menuBar.add(menu);
        JTextField textField = new JTextField(15);
        JPanel northPanel = new JPanel();
        northPanel.add(textField);
        JTextArea textArea = new JTextArea(5,25);
        textArea.setLineWrap(true);
        textArea.setWrapStyleWord(true);
        textArea.setMargin(new Insets(5,10,5,10));
        JPanel panel = new JPanel();
        panel.add(new JScrollPane(textArea));
        JFrame f = new JFrame("Cut Copy Paste");
        f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        f.setJMenuBar(menuBar);
        f.getContentPane().add(northPanel, "North");
        f.getContentPane().add(panel);
        f.setSize(400,180);
        f.setLocation(400,300);
        f.setVisible(true);
    }

  • Set data title from chart at runtime

    Is it possible to change the data title from a chart at runtime?
    Or alternativly, can one use a formula as data title, which then can be changed at runtime?

    We have some reports that are in deferent languages. For now I've used formulafields as columnheaders where I change the text at runtime accordingly.
    the text I want to change on the chart is located under
    Chart Expert... > Text (tab) > Data title:
    For now I solve this by drawing a text object over the chart, but this could give problems in the fututre with positioning and such.
    Edited by: Bruno Latte on Mar 23, 2009 3:06 PM

  • PDF print driver hang when pasting filename from Windows Clipboard

    This is consistently reproduceable on my Win 7 64-bit machine, running Acrobat Pro 9.3.1 (Creative Suite 4) and Firefox 3.6.2. There are no version properties available for the Adobe PDF Converter  print driver, when I inspect it via Control Panel.
    - copy something (i.e., a filename) to the Clipboard
    - in Firefox, choose File > Print > choose the Adobe PDF print driver
    - I am prompted for the Adobe PDF filename
    - when the Save As dialog displays, click in the "Save PDF File As" filename field, and press Ctrl+V.
    Firefox and/or the Acrobat PDF print driver are now hung/crashed; you must kill them via Task Manager.
    If you restart Firefox and repeat the above steps, but typing in the filename instead of pasting it, everything works fine.

    Hi,
    First please make sure your Office is up-to-date.
    I suspect this may be related to some 3rd-party add-ins or the security software, first please run Outlook in Safe Mode to determine if 3rd-party add-ins are related:
    Press Win + R and type “outlook.exe /safe” in the blank box, then press Enter.
    If there’s no problem copying and pasting in Safe Mode, disable the suspicious add-ins to verify which add-ins caused this issue.
    Please also disable the anti-virus program temporarily to check if this makes a difference.
    Regards,
    Melon Chen
    TechNet Community Support

  • How to set the title of pages created in Webcenter Spaces?

    Hi
    I need to set the title of the pages created in webcenter spaces. How can i do that? By default when i create the page in webcenter spaces the page name with which i created the page is coming up on the browser tab. But i want the browser title to be different from the page name. Is there a way to do this? I tried with using javascript and setting "document.title" but it works only partially. That is when the page is loading it shows the text that i have set using javascript but it doesnot remain persistent. As soon as the page loads it again resets back to the name of the page :(
    I also tried adding html markup on to the page in edit mode and tried giving in the <title> tag but it is not getting applied, as soon as i click on apply it just refreshes the page and my changes are gone.
    Please i need some help around this asap as it is critical.
    Thanks

    Thanks for the reply Jaap.
    It was really helpful. But i need further help on this.
    I need to change the browser title based on the tab selected. And here the tabs on spaces page is actually coming from a custom task flow. Any idea how can i achieve this? And there is no page refresh involved.
    Some help on this please.
    Thanks

  • Getting Safari document title/location via Scripting Bridge fails

    I'm trying to get the URL and document title from the topmost Safari document/tab. I have an AppleScript and an objective-c version using the Scripting Bridge framework.
    Both versions work fine for most web pages, however when I open a Youtube video in full-screen mode, the Scripting Bridge based version fails (error below). The Apple Script works fine for "normal" and full-screen Safari windows.
    Can anyone see what is wrong with the Scripting Bridge code below to cause it to fail for full-screen Safari windows?
    Here the code (I omitted error checking for brevity):
    AppleScript:
    tell application "Safari"
    # Give us some time to open video in full-screen mode
    delay 10
    do JavaScript "document.title" in document 0
    end tell
    Scripting Bridge:
    SafariApplication* safari = [SBApplication applicationWithBundleIdentifier:@"com.apple.Safari"];
    SBElementArray* windows = [safari windows];
    SafariTab* currentTab = [[windows objectAtIndex: 0] currentTab];
    // This fails when in full-screen mode:
    id result = [safari doJavaScript: @"document.title" in: currentTab];
    NSLog(@"title: %@", result);
    Scripting Bridge error (with added line breaks):
    Apple event returned an error. Event = 'sfri'\'dojs'{
    '----':'utxt'("document.title"),
    'dcnm':'obj '{ 'want':'prop',
    'from':'obj '{ 'want':'cwin',
    'from':'null'(),
    'form':'indx',
    'seld':1 },
    'form':'prop',
    'seld':'cTab' }
    Error info = {
    ErrorNumber = -1728;
    ErrorOffendingObject = <SBObject @0x175c2de0:
    currentTab of SafariWindow 0 of application "Safari" (238)>;
    I could not find details about the given error code. It complains about 'currentTab' which shows that the JavaScript event at least made it all the way to Safari. I assume that the current tab receives the event, but refuses to run the JS code, because it is in full-screen mode. However, why does this work for an AppleScript? Don't they use the same code path eventually?
    Thanks!
    Rico

    1) I have not yet looked into Apple events, but have read elsewhere that it is not the most fun thing to deal with. I might give it a shot after having tried 2 + 3
    Not really, but your command isn't too complicated so it'd be quite doable using the AEBuild* functions/NSAppleEventDescriptor and AESendMessage. If you go the AEBuild* route, you can use AEDebug to sniff Apple events sent from AppleScript for clues - the AEPrint syntax is similar to that used by AEBuild* functions. Mostly it's just tedious; first learning to use the lower-level APIs, then writing the code for them.
    2) Using NSAppleScript was actually my first approach, but having to compile each script before I run it seems a waste. Maybe I can try a pre-compiled script and hand in the JavaScript as a parameter.
    That's the safe and efficient way to parameterize AppleScripts. Although unless you're doing this to support user-supplied scripts, by the time you've packed what you need into an NSAppleEventDescriptor, a bit more code and you could probably send it directly to Safari yourself.
    3) I had tried ASTranslate in the past. I have not actually compiled the generated code, but seeing this makes me wonder about the difference between the Apple Script and Scripting Bridge.
    I've written about that in various places, e.g.:
    http://stackoverflow.com/questions/1309958/avoiding-applescript-through-ruby-rb- appscript-or-rubyosa/1316563#1316563
    Basically, Apple event IPC is RPC plus first-class queries, not OO as a lot of folks assume. AppleScript's OO-like syntax is a bit of a red herring, and the AS interpreter uses various tricks (e.g. implict gets) to further this illusion. So it looks and feels like OO, but only up to a point, and beyond that folks get totally confused when it does something decidedly un-OO. Hence AppleScript's reputation amongst professional programmers as being confusing and unpredictable. (It's actually reasonably straightforward and predictable one you know how it really works; it's just that figuring it out for yourself takes a lot of time and effort, since it's completely messed with your preconceptions by then. Ugh.)
    Apple had an opportunity to learn their lessons from AS's approach, but whether due to politics, hubris or naivety they decided to dress up SB to look even more Cocoa-/OO-like. Which just means there's a bigger impedance mismatch between the SB API and the AE API hidden beneath the surface. So the abstractions are thicker and leakier, and the obfuscations more impenetrable when you do run into problems. By comparison, objc-appscript minimizes the syntactic sugar and wears much of Apple events' inherent weirdness on its sleeve. So while it takes a bit of getting used to if you're from an OO background, once you do get the hang of it it (nearly always) just works.

  • Document Title Variable Text for Footer

    I am fairly new to InDesign and did as much searching as possible before posting this. I took a three-day class for InDesign, but we never got into variables.
    This is for a technical document template I am creating. What I am trying to do is create a text variable that pulls the "Document Title" from the File Info. This variable would put the document title in the footer of every body page in my document.
    Thanks for any help!

    I took it to mean the data in the indicated field inthe XMP data below:
    You get here by choosing File Info from the File menu in ID, or you can acess it through Bridge, I presume. By default this field seems to be blank, and you get to enter anything you like into it, so it might or might not be the same as the filename (I asked earlier if it was because I hadn't done any investigation and wondered if you had).

  • When saving a PDF from a FrameMaker book, is it possible to set document filenames as bookmarks in the PDF?

    When saving a PDF from a FrameMaker book, is it possible to set document filenames as bookmarks in the PDF? Currently when I have a Framemaker book that I want to save as a PDF, I choose Save Book As and then choose PDF for the file format. A dialog box comes up in which I can choose the Bookmarks tab and choose which tagged content I want to be made into bookmarks in the PDF file. What if I would rather have the filename of a document rather than the chapter title be a bookmark in the PDF? Is that possible? Where would I choose that option? Thanks!

    There are two ways that you could do this. You can either use postscript text frames and enter the correct pdfmark entries to show the file name with the corresponding actions (i.e. where to go in the PDF) or you can use hidden text in FM and the "Filename (Short) " variable in a unique paratag to be picked up by FM's bookmark creation.
    To go the pdfmark route, see http://www.pdflib.com/fileadmin/pdflib/pdf/pdfmark_primer.pdf for details and also consult the Adobe Pdfmark Reference manual (http://www.adobe.com/content/dam/Adobe/en/devnet/acrobat/pdfs/pdfmark_reference.pdf).
    The hidden text route would use FM's Color Views to specify a colour as Invisible. This will make the content visually disappear from the screen (and any output), but FM will still be able to read the contents of any text that is coloured with the Invisible colour(s).
    1. Pick or create a colour that you want to be invisible. [Magenta is usually a good bet and stands out visually].
    2. Set that colour to be invisible in View 1 and visible in View 6. [you can use the shortcut <esc> v 1 and <esc> v 6 to toggle between the views.]
    3. Create a paratag to use for the filename and set the font colour to use the invisible colour.
    3. In the title of each chapter file, drop an anchored frame that is set to be outside of the text frame [so it won't interfere with any other content].
    4. In that AFrame, insert a text frame and use the invisible paratag defined in step 3.
    5. Insert the Filename (Short) variable in that text frame.
    6. Repeat steps for all files to be included in the bookmarks.
    When creating the PDF bookmarks, select only the paratag used for the invisible colour.
    Don't forget to toggle the View to be invisible (i.e. <esc> v 1  - this also works at the book level for all files in the book).

  • How to change/set the browser title from web forms (XP platform with SP2)

    I am running Form9i, I have set the browser windows title from Web Forms dynamically by using following method. However, when my PC has changed to XP, the function seems not work. Does anybody have same problem and how to solve it? Any suggestions would be appreciated.
    Add the Javascript code to your baseHTML file. For example,
    if you are using the basejini.htm:
    <HEAD><TITLE>%pageTitle%</TITLE>
    <script language="javascript1.2" type="text/javascript1.2">
    function Change(a) {    document.title=a;    } </script>
    </HEAD>
    In web Forms , call the javascript function with WEB.SHOW_DOCUMENT built.
    For Example the following code set the browser title with username . web.show_document('javascript:Change('||'"'|| get_application_property(USERNAME)||'"'||')','_self');
    Best Regards,
    Bowie

    Dear Frank,
    Thanks for your reply. Can you tell me in detail which built-in function in Webutil can set value in browser title ?
    Btw, is it possible for me to set parameter "separateFrame=True" in formsweb.cfg and set the form window title by using SET_WINDOW_PROPERTY(FORMS_MDI_WINDOW,TITLE,v_msg_string)?
    Best Regards,
    Bowie

  • Search results displays title from the document and not from its metadata

    Hi All,
    I have an issue with SharePoint 2010 Search results. While searching for any content in SharePoint, it displays the title value from the keyword in the document and not from the metedata.
    Scenario:- I have a document library and a document named "Bill Details C1234.doc" in it. The title for this item in document library is "Bill Details". However on searching with keyword "Bill" it displays the
    first word in the word document which is "I".It should display the title set in the document i.e. "Bill Details".
    Please suggest

    I think you're looking to do the reverse of this:
    https://social.technet.microsoft.com/Forums/office/en-US/c2ec4fc2-e04c-453c-8035-4f334f062d05/have-search-results-display-the-filename-of-a-word-doc-instead-of-the-title-metadata?forum=sharepointsearchlegacy
    check this out as well, again I think you want to reverse part of this where it references filename
    http://chris.gg/2011/06/display-filename-instead-of-document-title-in-sharepoint-search/
    So, where it references Filename, you would put title, but leave where it references title alone.  Or maybe I misunderstood and you are looking for exactly this, to make search display the filename and not the title, in which case I trust that you'll
    find this to be your answer.
    Stacy Simpkins | MCSE SharePoint | www.sharepointpapa.com

  • How do I load a picture from the clipboard (either Windows clipboard or Labview clipboard) into image data that can then be processed in Labview?

    I want to load a picture from the Windows clipboard (and if not possible, then from the Labview clipboard) into actual numerical image data so that it can be processed in lab view. When I'm at the main screen where I can add controls, I see a section of controls called "Vision" in the tool bar where all the different controls can can be added from. When I go to the control called "Image" and put that on my form, and then look at the flowchart/blockdiagram programing window to see what inputs and outputs it has, I only see one output, and no inputs. And when I right click on it, I see NO way to load an image into the Image control. PLEASE help me.
    Message Edited by Ben321 on 11-09-2008 04:32 PM

    Hi Ben,
    National Instruments has an image processing software called Vision and although I am not completely sure, I think the controls that you found in the control pallet are used in conjunction with the software. Depending on what kind of image processing you want to conduct in LabVIEW, you might want to consider purchasing that product.
    If cost is an issue, there are functions in LabVIEW which allows you to take in image files and process them. However, please keep in mind that the capabilities are limited.
    Images should be loaded onto LabVIEW not via the clipboard but through loading it from folders or directories. (There might be a way to and so if you find a way please let me know! I would like to know myself =D) If you open the function pallet by right clicking on the block diagram, in the programming folder you should find a directory called "Graphic and Sound". There, you'll find functions in which allows you to process images.
     In the "Graphic Type" directory there should be a function called Read JPEG file.vi. There are also others which allows you to read png and bmp files. Please note that there are functions which write as well. Set a file path on the block diagram and inside the "Grahic and Sound" there is a "Picture Function" directory and inside there, there should be a function called "Draw Flattened Pixmap.vi" That changes the image into a format where you can process on LabVIEW. Inside the "Picture Function" directory there are several functions which allows you to process the specified image. Play around with it and see how it goes. And don't forget to Write the file in the end to save any changes.
    I hope this helps
    National Instruments Japan
    Applications Engineer Taiki Hoshi

Maybe you are looking for

  • New Laptop, iphone not syncing

    I have a new laptop (Windows 7, intel i5, 4gb) and have installed the latest iTunes software.  I have an iPhone 3G.  The problem is that the iPhone does not seem to be recognised by the laptop.  It doesn't begin to charge when plugged in and it does

  • No device in itunes

    I try to sync my ipod touch to my computer and no device shows up in itunes. On my device it says trust or don't trust. When I say trust, nothing happens. The folder comes up in the computer but no device in itunes? Please help!

  • Regex help, only dependent on first letter

    hi, i have a problem using the regex utility, i have an array containing random words. i need to filter out and print out the words that starts with a, h or m. this is part of my coding it seems to me that the comparison will print any word with a, h

  • Oh what have I done

    Crap, I just got a nano, installed it at work, updated it to the 6-28, tried to download a podcast, now im home, installed it on my home computer and all I get is that it wont read it, the delayed write error and the blinking do not disconnect thing,

  • Macbook no sound???

    HI everyone just want to see if anyone can help me in this situation: My Macbook was working fine before (in terms of sound) but when I got back home all of a sudden my speaker is not working.... went to the sound function in system preference under