Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Applescript - paste/insert text into a text box

463 views
Skip to first unread message

ne...@officeformac.com

unread,
May 20, 2010, 7:49:49 AM5/20/10
to
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!!!!!!

Peter Jamieson

unread,
May 20, 2010, 11:01:52 AM5/20/10
to
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

0 new messages