Re: Word 2008 script broken in Word 2011
Re: Word 2008 script broken in Word 2011
- Subject: Re: Word 2008 script broken in Word 2011
- From: Paul Berkowitz <email@hidden>
- Date: Wed, 29 May 2013 16:05:23 -0700
- Thread-topic: Word 2008 script broken in Word 2011
Title: Re: Word 2008 script broken in Word 2011
On 5/29/13 1:40 PM, "Lists" <email@hidden> wrote:
I used the Word 2004 scripting guide for the syntax.
Actually, this is highly mysterious. I just looked up the AppleScript Reference for Word 2004, and there's no 'file format flat template' there either! (Nor 'format PDF' either.) In fact, as I best recall, it was a major failing of Word 2004 that there was no way to save as PDF (provided only in 2008). So I really wonder what was going on and where you found that enumeration, or how it was provided.
It's possible that the raw code used to compile to some other words, but now in 2008 and/or 2011 displays as 'flat template' (which could still somehow be in the Dictionary, but hidden, as a deprecated (and now in 2011 non-functioning) enumeration. You may have used a different enumeration, but I don't know what that might have been. The Reference also says you can use other formats: "To save a document in another format, specify the appropriate value for the save format property of the file converter object." Maybe there was once a file converter that did the saving to PDF, before Word had it built in (I dimly recollect something of the sort), although it in turn would have been represented by a number:
"
Class: file converter
save format
Returns the file format of the specified document or file converter as a unique number that
represents the file converter. Read-only."
Sometimes enumerations have 'word equivalents' that can substitute for the number. (Sort of what 'enumeration' means, in fact.) So maybe that's what you had. But it's quite a mystery now.
Script Debugger could expose these hidden dictionary items, and their raw codes, but my version of SD no longer works in Mac OS 10.8 which I recently upgraded to via a new computer, and I haven't upgraded SD yet.
--
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:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden