MACSCRPT Archives

November 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:
Mark Lively <[log in to unmask]>
Reply To:
Macintosh Scripting Systems <[log in to unmask]>
Date:
Thu, 8 Nov 2007 11:22:40 -0500
Content-Type:
text/plain
Parts/Attachments:
text/plain (28 lines)
Have you tried having templatePath as a File or alias as opposed to a  
path?  Also have you tried it as a posix /-delimited path?

On Nov 8, 2007, at 10:59 AM, J.L. Slangen wrote:

> I have an iMac running OS X version 10.4.10 and an iBook running OS  
> X version 10.3.9.
> Office:Mac 2004 is running on both machines.
> The following script produces different results.
>
> set templatePath to  
> "Volumes:Mac1HD:Home:Documents:MyTemplates:Memo.dot"
> tell application "Microsoft Word"
> 	set memoDoc to make document
> 	set attached template of memoDoc to templatePath
> end tell
>
> On iMac the attached template of the new document is "Memo.dot" and  
> on iBook the attached template is "Normal". The path contained in  
> templatePath is ignored on the iBook. On the iMac there are two  
> templates "Memo.dot" and "Normal".
> I have no idea why this is so. Does anybody know a workaround?
>
> Jef Slangen
> Bilthoven
> Netherlands
>

ATOM RSS1 RSS2