5 Replies Latest reply: Dec 7, 2012 2:04 PM by sysx
sysx Level 1 Level 1

I would like to get my AppleScript to insert a textual comment at the current cursor position in a Word document.  The comments are mostly longer (multi-lines) than what Word AutoText allows.  Automator has insertion of text at the beginning and end of the document.  But, I would like the text to be at the cursor position.  In reviewing the AppleScript documentation, I cannot determine how AppleScript identifies or inserts text at the cursor position.  Any suggestions?

Mac Pro, MacBook Pro, MacMini Server(10.8.2)
Solved by Pierre L. on Dec 7, 2012 12:37 PM Solved
Try this: set theComment to "Some text"tell application "Microsoft Word"    set content of selection to theCommentend tell