0 Replies Latest reply: Feb 8, 2013 8:04 AM by Karl Thomas Hove
Karl Thomas Hove Level 1 Level 1 (5 points)

I am looking for an easy solution to copy text from a web page (always in the same location) into to a specific location in Word and print.



tell application "Google Chrome"

    activate   

    tell application "Google Chrome" Get id="customer-name-first"  {not sure how to execute this part}

    tell application "System Events" to keystroke "c" using command down

end tell



tell application "Microsoft Word"

    activate


tell application "Microsoft Word"

set findRange to find object of selection

tell findRange

execute find find text "xxx" replace with "CLIPBOARD" replace    {not sure how to get the clipboard pasted here}

replace all

    tell application "System Events" to keystroke "v" using command down


iMac, OS X Mountain Lion (10.8.2), Office (home)