Mac Forums

Mac Forums (
-   OS X - Development and Darwin (
-   -   Apple script (

Anima Rani 10-12-2012 01:56 AM

Apple script

How to convert the doc file in docx through apple script programming.


vansmith 10-12-2012 09:53 AM

Any particular reason you want to do this? doc files should open fine in Word 2010/2011.

Anima Rani 10-13-2012 02:30 AM

I want to open the doc file and save as docx file.

vansmith 10-13-2012 09:49 AM

But why?

Regardless, take a look here. There's a section on opening files and saving them in different formats.

Anima Rani 10-17-2012 03:10 AM

I have written the following code ;

set mydoc to "/Users/hcl/Desktop/Sample.doc"
tell application "Microsoft Word"
open mydoc
save as active document file format format document file name "Sample_new.docx"
close active document
end tell

But it not converting the doc to docx without compatibility. I want to save as the doc file into docx. Please help.

All times are GMT -4. The time now is 12:15 AM.

Powered by vBulletin
Copyright ©2000 - 2015, Jelsoft Enterprises Ltd.