Mime-Version: |
1.0 |
Sender: |
|
Subject: |
|
From: |
|
Date: |
Tue, 10 Jul 2007 14:07:37 -0400 |
Content-Type: |
text/plain; charset="us-ascii" ; format="flowed" |
Reply-To: |
|
Parts/Attachments: |
|
|
I have a script that opens a Word template and saves a new document,
using the recorded Microsoft VB gobbledegook, like so:
set filepath to "Server:Edit:test"
tell application "Microsoft Word"
activate
do Visual Basic "Documents.Add
Template:=\"Server:Edit:Template\""
do Visual Basic " ChangeFileOpenDirectory
\"Server:Edit:\""
do Visual Basic " ActiveDocument.SaveAs
FileName:=\"" & filePath & "\", FileFormat:=wdFormatDocument"
end tell
Worked fine until just the other day, now all of a sudden it gives
"Ambiguous filename detected : tmpDDE" and highlights the first line
above that its suppose to open the template.
I tried recording the same steps again, got some slightly more
elaborate gobbledegook, and when I ran that I got the same error.
The Template file was lost and replaced, so that may have something
to do with it, but AFAIK it's the same Word template file.
--
Bill Steele
[log in to unmask]
|
|
|