Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Writing to an Open Document

Status
Not open for further replies.

finitesimian

Programmer
Feb 11, 2006
29
US
By the way.........before I ask this question, I could have sworn there was a thread somewhere that already covered this, but I can not for the life of me find it. At any rate, here goes:

How do you write to a .txt or .doc file that is already open on the desktop? When I say "open", what I mean is that the .txt or .doc file is already "open" in a window on the desktop, and the script adds text to the open window.

Thanks in advance
 
If it's open in Word you can create a Word object. I honestly don't know if NotePad or WordPad have any optinos other than appActivate and sendKeys.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top