Re: Making a Microsoft Word 2004 document from an existing template
Re: Making a Microsoft Word 2004 document from an existing template
- Subject: Re: Making a Microsoft Word 2004 document from an existing template
- From: Paul Berkowitz <email@hidden>
- Date: Fri, 15 Apr 2005 08:47:19 -0700
Title: Re: Making a Microsoft Word 2004 document from an existing template
On 4/15/05 4:48 AM, "Jacques Ravanat" <email@hidden> wrote:
In Word 2004, to make a new document from an existing template,
you can select the template "Template1.dot" in the Project Gallery in the File menu,
and get a new document untitled "DocumentN.doc" which will can be saved by default as a document "DocumentN.doc".
I tried many things with the help of Script Debugger Explorer, but was unable to get (or guess ...) the correct syntax to do the same with AppleScript ...
Pseudo Code not working :
Make new document with "Template1.dot" as attached template
Anyone knows how to do it correctly?
It's a bug. I found it last week and just had it verified by someone at MS yesterday. The syntax that should work but doesn't is
make new document with properties {attached template:"disk:folder:Templates:My Templates:Template1.doc"} -- full path to the template
You can still do it the "old" pre-2004 way using 'do Visual Basic':
do Visual Basic "Documents.Add Template:=\"disk:folder:Templates:My Templates:Template1.doc\""
[Note that if you then export or distribute the resulting document, it will have all the text and formatting of the template, but will only contain the template's macros, auto-text entries and other special features if you also export the template so it's available locally or else use Organizer to transfer them to the document (which you can also do by 'do Visual Basic' and maybe regular AppleScript).]
The bug for 'attached template' has been filed and should be fixed in a later version of Word.
--
Paul Berkowitz
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden