Applescript - paste/insert text into a text box

N

nest

Version: 2008 Operating System: Mac OS X 10.6 (Snow Leopard) Processor: Intel Hello, I'm using Word 2008.

how I can to make an applescript which paste text into a text box or a frame? the text will be in the clip board or in a variable. I try with the following code, but it doesn't works.

insert text MyText at text box 1 of active document

Thanks!!!!!!
 
P

Peter Jamieson

Start with something like

tell application "Microsoft Word"
set MyText to "my text"
set content of text range of text frame of text box 1 of active
document to MyText
end tell

Peter Jamieson

http://tips.pjmsn.me.uk
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top