MACSCRPT Archives

July 2007

MACSCRPT@LISTSERV.DARTMOUTH.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
"J.L. Slangen" <[log in to unmask]>
Reply To:
Macintosh Scripting Systems <[log in to unmask]>
Date:
Sun, 15 Jul 2007 13:37:58 +0200
Content-Type:
text/plain
Parts/Attachments:
text/plain (18 lines)
I do not understand why Microsoft Word dies after running the  
following script.

tell application "Microsoft Word"
	set memoDoc to make document
	insert text "Begin" at end of text object of active document
	set docName to "myTestDoc"
	save as memoDoc file name docName file format format text
end tell

The document is made and saved as myTestDoc, but 1 sec thereafter  
Word quits.

Anyone a similar experience?
What could be the cause?

Jef Slangen

ATOM RSS1 RSS2