hello,
i have an applescript which also saves the active document. for this i use
[code]
tell application "Microsoft Word"
save as active document file name tmpDoc file format format document
end tell
[/code]
but this doesn't save the file in the same manner as when i choose save as in word as a doc document.
in bash, file myDocumentSavedInWord gives sth like
"CDF V2 Document, Little Endian, Os: Windows, Version 6.1, Code page: 1252, Author: Admin, Template: Normal, Last saved by: "... and so on, lots of informations.
also, for this file the small data icon in finder shows some text as indicating "not en empty document"
when saved with apple script, in bash file myDocumentSavedWithApplescirpt says
Zip archive data, at least v2.0 to extract
i get this result for all documents i save with applescript. however, for some it works out well, but some documents cant be opened after saved with applescript. word says (translated"
"the open xml-file "myDocument" can not be opened because the content causes problems
Details: no errordetails available"
when i save this document from word as doc document i get the "normal" bash file info and everything is okay.
i have no influence of how the word documents are created since they are created from our onlinesoftware as html files.
how can i use applescript to save word documents exactly like word do it when using save as?
thanks