Use automator or applescript to capture and paste text

Hi,
I have two separate applications that need to share data and the developers are refusing to work with each other.
Many years ago, I worked in QA but in an MS environment and we had tools that could capture images and text and input that back in. I was hoping I could do something similar with either automator or applescript.
More specifically: This is for a dental office. The program that interfaces with the X-ray machine and processes the radiographs has a completely separate database from the patient management system. All of the patient information currently resides in a database within the patient management system so when we go to take an X-ray on a new patient, we have to retype all of the patient's information into the X-ray program. Double entry wastes time and has a higher probability of errors. I was hoping that after the assistant opens the patient's chart, either automator or applescript (or a 3rd party app) would be able to look at that screen, identify a few pieces of text that are always in the same place within the window (name, dob, gender, chart no., etc.) and copy that information and then paste it into the same fields in the X-ray program window.
Any ideas?
This is going to drive me nuts...
Thanks!

The real soluiton is to have a 3rd program that bridges them both.
I've done exactly this for clients.  We normaly use Python because its open source and can link into any db out there.
Your talking about "screen scrubbers".  I've used them to for software QC and automated testing.  They don't work anymore since "data execution protection" and memory protection in general became popular.
You can write an Applescript (not sure Automator can handle it) to select any field of any running application and copy what is there, then paste it somepalce else.
So, in theory, you could make a script you run at the blank screen that goes and copies over the currently selected patient in the other App.
I'd really rather see the "bridge" app I mentioned first though.
Add support for "LDAP" to your software requirements and this problem will go away.  I mean really, why let them spend money making a "patient" databse when they can use the services of an off-the-shelf LDAP server! 
What is LDAP: http://en.wikipedia.org/wiki/LDAP

Similar Messages

  • Using automator or applescript in Preview

    Hi All,
    I'd like to create a services menu item in Preview which does either of two things:
    Open the file I'm currently viewing in Canon DPP raw processing software
    OR
    Check for a folder called "Keepers" in the same directory as the file I'm currently viewing. If it does not exist, create it, and then save a copy of the file into this folder.
    However, I can't seem to find a way to create a services menu item in Preview - can anyone point me in the right direction?
    Thanks

    AFAIK, you can't create a service in Leopard using Automator or AppleScript. Check the AppleScript forum under OS X Technologies. See http://www.reynoldsftw.com/2009/08/automator-and-finder-interactions-in-os-x-10- 6/ for more on this.

  • How to copy and paste text from a web site viewed in Chrome using the Xperia z3v?

    I have searched high and low for a way to copy and paste text from a web site in Chrome using the Xperia z3v.  I've tried a long tap, a double tap, a triple tap - nothing works. I am able to select text, copy and paste it in a Word doc, however.  There must be some way to do this on a web site in Chrome. I'm certain I am not trying to select text that is really an image. I am trying to copy text. Here is the link where I'm trying to get the text. It's a recipe.http://www.foodnetwork.com/recipes/ree-drummond/mushroom-pilaf.html#! Maybe I should try to get Firefox for smart phones and see if that works. Any ideas?Thank you!

    Curnow 1 wrote the following:  "you should do a tap wait a sec and 1 more tap in the same place and hold the Second tap ;https://www.dropbox.com/s/23whtlt2gizxu27/MOV_1048.mp4?dl=0" Curnow1, this actually worked! Holy Cow, who'da thought?!!Thank you. I gave you a kudo and I marked this as a solution. Thanks again!PS - I'm amazed at how long it takes me to accomplish seemingly simple things with a smart phone. This is my first smart phone ever. I am a former computer programmer and am very PC literate. Still, sometimes I pull my hair out. Thanks again! 

  • I used to be able to copy and paste images from the internet into keynote slides and pages. Now when I copy and paste all I get is an empty  box. My iskysoft iTube studio has also stopped downloading videos. Is there an extension I need to enable?

    I used to be able to copy and paste images from the internet into keynote slides and pages. Now when I copy and paste all I get is an empty  box. My iskysoft iTube studio has also stopped downloading videos. Is there an extension I need to enable? Any ideas

    Try dragging the image to the desktop, then drag the image to the slide you want it on

  • I would like to be able to cut and paste text whilst using Firefox

    I am taking an online course and would like to do my work in Microsoft Office word documents and then copy and paste text ....how can I do this?

    Do you mean that you cannot copy text from MS Word and paste it into a text box in Firefox? Does the clipboard work in Firefox safe mode? Maybe an extension is interfering with it.
    * http://kb.mozillazine.org/Safe_mode

  • How to NOT retain formatting when copying and pasting text

    Captivate 7 keeps the formatting from my text sources when I paste into a Text Caption which is not what I need. Anything I could find in the forums where questions relating to "keeping" the source formatting. I don't want this, I want Captivate to keep its text formatting when I paste text into a text caption. I even did a test creating a new project and using one of the Cap 7 themes. If I paste text in the default capture caption style object, it retains the formatting of the copied text source.  I have been working with Captivate 7 since a few months now and, until this morning, when I copied and pasted text from another source into my Captivate Text Caption, it retained the format of my Captivate Text Caption object. This is exactly what I need. How can I get this behavior back?
    I appreciate any help. Thank you.

    Hi there
    Well, first I would report it as undesired behavior and possibly ask for an enhancement that allows us to right-click and paste without formatting. Do this using the link below:
    http://www.adobe.com/go/wish
    For now, you have a couple of options.
    1. Perform a side trip. Open a text editor such as Windows Notepad or Apple Textpad and paste, then copy back to the clipboard. Then paste the text into the caption. (When pasting into the text editor, formatting is stripped)
    2. On Windows machines, you can usually find a clipboard utility that allows you to paste as pure text. In fact, one such application is called PureText.
    PureText Home Page (Note that I have no affiliation with them and nothing to gain if you choose to use the product. Just wanted to make you aware of it.)
    Cheers... Rick

  • How can I use Automator to extract specific Data from a text file?

    I have several hundred text files that contain a bunch of information. I only need six values from each file and ideally I need them as columns in an excel file.
    How can I use Automator to extract specific Data from the text files and either create a new text file or excel file with the info? I have looked all over but can't find a solution. If anyone could please help I would be eternally grateful!!! If there is another, better solution than automator, please let me know!
    Example of File Contents:
    Link Time =
    DD/MMM/YYYY
    Random
    Text
    161 179
    bytes of CODE    memory (+                68 range fill )
    16 789
    bytes of DATA    memory (+    59 absolute )
    1 875
    bytes of XDATA   memory (+ 1 855 absolute )
    90 783
    bytes of FARCODE memory
    What I would like to have as a final file:
    EXCEL COLUMN1
    Column 2
    Column3
    Column4
    Column5
    Column6
    MM/DD/YYYY
    filename1
    161179
    16789
    1875
    90783
    MM/DD/YYYY
    filename2
    xxxxxx
    xxxxx
    xxxx
    xxxxx
    MM/DD/YYYY
    filename3
    xxxxxx
    xxxxx
    xxxx
    xxxxx
    Is this possible? I can't imagine having to go through each and every file one by one. Please help!!!

    Hello
    You may try the following AppleScript script. It will ask you to choose a root folder where to start searching for *.map files and then create a CSV file named "out.csv" on desktop which you may import to Excel.
    set f to (choose folder with prompt "Choose the root folder to start searching")'s POSIX path
    if f ends with "/" then set f to f's text 1 thru -2
    do shell script "/usr/bin/perl -CSDA -w <<'EOF' - " & f's quoted form & " > ~/Desktop/out.csv
    use strict;
    use open IN => ':crlf';
    chdir $ARGV[0] or die qq($!);
    local $/ = qq(\\0);
    my @ff = map {chomp; $_} qx(find . -type f -iname '*.map' -print0);
    local $/ = qq(\\n);
    #     CSV spec
    #     - record separator is CRLF
    #     - field separator is comma
    #     - every field is quoted
    #     - text encoding is UTF-8
    local $\\ = qq(\\015\\012);    # CRLF
    local $, = qq(,);            # COMMA
    # print column header row
    my @dd = ('column 1', 'column 2', 'column 3', 'column 4', 'column 5', 'column 6');
    print map { s/\"/\"\"/og; qq(\").$_.qq(\"); } @dd;
    # print data row per each file
    while (@ff) {
        my $f = shift @ff;    # file path
        if ( ! open(IN, '<', $f) ) {
            warn qq(Failed to open $f: $!);
            next;
        $f =~ s%^.*/%%og;    # file name
        @dd = ('', $f, '', '', '', '');
        while (<IN>) {
            chomp;
            $dd[0] = \"$2/$1/$3\" if m%Link Time\\s+=\\s+([0-9]{2})/([0-9]{2})/([0-9]{4})%o;
            ($dd[2] = $1) =~ s/ //g if m/([0-9 ]+)\\s+bytes of CODE\\s/o;
            ($dd[3] = $1) =~ s/ //g if m/([0-9 ]+)\\s+bytes of DATA\\s/o;
            ($dd[4] = $1) =~ s/ //g if m/([0-9 ]+)\\s+bytes of XDATA\\s/o;
            ($dd[5] = $1) =~ s/ //g if m/([0-9 ]+)\\s+bytes of FARCODE\\s/o;
            last unless grep { /^$/ } @dd;
        close IN;
        print map { s/\"/\"\"/og; qq(\").$_.qq(\"); } @dd;
    EOF
    Hope this may help,
    H

  • Preview - Cannot copy and paste text from pdf

    Hi there ...
    I usually have no problem copying and pasting text from a pdf using Preview ...
    However .. I recently received a pdf ... and there is no way it will highlight the text to copy ...
    The older pdf's are not affected ...
    I did a get info on the pdf ... it's not locked ... and it was made by Adobe In Design CS2
    I tried opening it with Adobe Reader 9 ...... but still no luck
    IN my search .. I noticed one other person had the same problem ... but he didn't get any responses..
    Thanks for any info ....

    If it's behind something else then you can open it in Illustrator and select the specific object you want. If it's rasterized then no.
    If this is a document you can share with the world then I'm sure we could tell you what specifically is going on if you posted it here.

  • Cannot copy and paste text into Photoshop CS6

    I am not able to copy and paste text from non-Adobe programs (like Keynote or Word) into Photoshop CS6. I get an error message reading "Could not complete the Paste Text command because the clipboard data is empty or invalid." I have tried shutting down Photoshop, shutting down other programs, re-starting my computer, adjusting my Preferences and asking Adobe for help by phone and chat. I am on a new iMac and have no third party plug-ins installed. Can anyone help?

    Yesterday i update Yosemite and Adobe Photoshop CS6
    i found error text message like you everytime when i used fontAwesome on Adobe Photoshop CS6 and then i found out to fix this problems Yeahh…
    Try My Way to fix it out
    -> copy The Text you want to use
    -> paste your text (from your clipboard) To App TextEdit
    -> then Copy again
    -> back to Photoshop paste it on your document layout
    -> Done

  • Muse 3.1 crashes often upon copy and paste 'text'from illustrator

    Experience persistent crashes in Muse 3.1 whenever I copy and paste text from illustrator to  Muse.

    I would use the older version so you can continue working while troubleshooting continues in CC2014, if you haven't uninstalled it yet (and it didn't also lose the ability to copy/paste).
    Have you tried any of the usual suspects?
    Clear program cache and/or rename config folder: Deleting a corrupted cache file
    Restore Preferences: Restore preferences | Dreamweaver CS4, CS5, CS5.5, CS6

  • Why can't you copy and paste text from the Dictionary widget?

    I use this dictionary often, but I wish that I was able to copy and paste the text from it.

    Just use the Dictionary application in the Applications folder. You will have no problem copying and pasting text from the full application. I just tried it and it works fine.

  • Why cant I copy and paste text from my book thats in the library?

    Why cant I copy and paste text from my book thats in the library?

    MCWEB wrote:
    Can I Copy and Paste text from one Contact to Another on iPhone 3G?
    You will be able to do copy & paste when 3.0 comes out this summer.
    Or even better while the iPhone is connected to my PC can I view the address book on the iPhone and make changes using my PC keyboard?
    No. You would make changes to the address book on your PC and then sync via iTunes.

  • Can I Copy and Paste text from one Contact to Another on iPhone 3G?

    Can I Copy and Paste text from one Contact to Another on iPhone 3G?
    Or even better while the iPhone is connected to my PC can I view the address book on the iPhone and make changes using my PC keyboard?
    I had a challenge importing from my outlook as it created dual entries for people I had with multiple email addresses or telephone numbers so I need to copy and paste contact info from one to antoher.
    Can anyone help?

    MCWEB wrote:
    Can I Copy and Paste text from one Contact to Another on iPhone 3G?
    You will be able to do copy & paste when 3.0 comes out this summer.
    Or even better while the iPhone is connected to my PC can I view the address book on the iPhone and make changes using my PC keyboard?
    No. You would make changes to the address book on your PC and then sync via iTunes.

  • I have an iPhone 4s, and I cannot copy and paste text from facebook.

    I have an iPhone 4s, and I cannot copy and paste text from facebook. I opened Safari and tapped/held the text I wanted to copy, but nothing happened. I have tried everything, and I am getting frustrated.

    Are the use the correct email address for the contact? Those are listed in Settings>Messages>Send and Receive. When Messaging somene the iOS devices used the email address (or phone number if applicable) listed in the Contact app for that person.
    Thus, it appears the you Contact apps only has that one email address listed for the person you are trying to Message.
    If he can send you a Messages can you reply to it? If so save the sender to your Contact app.

  • How to copy and paste text into email without HTML gibberish

    I've had trouble for some time now copying and pasting text into and out of yahoo emails. I can't just copy and paste text, I have to first transfer to Word for Mac and then paste into a yahoo email. Then I end up with what looks like three lines of HTML gibberish at the start of the pasted text each time. Isn't there a clean and direct way of copy and paste of text into and from emails in yahoo? No other email I work with has this problem, and the Safari browser doesn't give this same issue
    == This happened ==
    Every time Firefox opened
    == some recent Firefox update, I think

    I have to agree with bmalmquist.  Need for Speed seems to work great on the Playbook.  I didn't buy the Playbook to play games though.  RIM needs to shift their focus from games to useful and productive apps.  The apps I need to use are either missing very important features, or are just completely missing.  It is somewhat disconcerting to see new apps appear in App World only to discover that the new apps are mostly games.  I'm seeing lots of apps that would help me waste time, but very few that will actually help me be more productive.

Maybe you are looking for