MACSCRPT Archives

January 2008

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:
Bill Steele <[log in to unmask]>
Reply To:
Macintosh Scripting Systems <[log in to unmask]>
Date:
Tue, 22 Jan 2008 13:55:28 -0500
Content-Type:
text/plain
Parts/Attachments:
text/plain (23 lines)
This oughta be real simple:

tell application "Microsoft Word"
	set storyName to name of document 1
end tell
set tempPath to (path to desktop as string) & (storyName as string)
tell application "Microsoft Word"
	save document storyName in tempPath
end tell


--> "Microsoft Word got an error. Document "foo" doesn't understand 
the save message."

Say what? Doesn't understand "save?".  (This is Word 2004. The 
dictionary agrees with me.)

What's even weirder is that sometimes it works. Usually after a restart.
-- 

Bill Steele
[log in to unmask]

ATOM RSS1 RSS2