Re: Making text plain or bold in Word
Re: Making text plain or bold in Word
- Subject: Re: Making text plain or bold in Word
- From: Emmett Gray <email@hidden>
- Date: Sat, 12 Apr 2003 23:00:17 -0400
Well, it works for me, run from Script Debugger, OS 9.2.2, AS 1.8.3,
Word 2001, and I just tested it again on a document with a picture
and another one with a table. Perhaps you're in X which I don't yet
use.
--Emmett
On Sat, 12 Apr 2003 18:18:54 +0100, "Oz.Springs"
<email@hidden> wrote:
At 11:11 -0400 12/04/2003, Emmett Gray wrote:
Here's an economical way (with thanks to Shane Stanley for starting
me thinking):\
tell application "Microsoft Word"
save document 1 as "text only"
revert document 1
set style of text from word 1 to word 2 of document 1 to bold
end tell
Just tested this one out and got an error message from line 2 (both
documents, 1 with picture but that was not the problem):
Microsoft Word got an error: Cant make some data into the expected type.
[Press stop button]
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.