applescript questions

D

doho

Hi everybody

AppleScript in Word 2004:

1. To create a new document, the instruction "make new document" work
fine. But I can't figure out how to make a new document based on a use
template (the ones found in the Project Catalog) via AppleScript. An
useful hints would be appreciated.

2. It seems that the AppleScript command "do visual basic" is broken i
Word 2004. Could somebody please confirm this?

Thanks for your help!

doho / Bern / Switzerlan
 
M

Matt Centurión [MSFT]

1. Unfortunately the "make new document" in 2004 cannot currently create a
new document based on a template. However you can use "do visual basic" to
do just that:

tell application "Microsoft Word"
set stTemplatePath to ((choose file) as string)
do Visual Basic ("documents.add Template:=\"" & stTemplatePath & "\"")
end tell

2. Do visual baisc is not broken because I just copied the above code from
AppleScript on Word 2004 SP2 where it worked fine. Might be a problem with
your syntax. If not, please post more information about how it¹s not
working.

Thanks,

Matt
MacWord Testing
Microsoft
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top