Apple script

vansmith

Senior Member
Joined
Oct 19, 2008
Messages
19,924
Reaction score
559
Points
113
Location
Queensland
Your Mac's Specs
Mini (2014, 2018, 2020), MBA (2020), iPad Pro (2018), iPhone 13 Pro Max, Watch (S6)
Any particular reason you want to do this? doc files should open fine in Word 2010/2011.
 

vansmith

Senior Member
Joined
Oct 19, 2008
Messages
19,924
Reaction score
559
Points
113
Location
Queensland
Your Mac's Specs
Mini (2014, 2018, 2020), MBA (2020), iPad Pro (2018), iPhone 13 Pro Max, Watch (S6)
But why?

Regardless, take a look here. There's a section on opening files and saving them in different formats.
 
OP
A
Joined
Oct 12, 2012
Messages
4
Reaction score
0
Points
1
I have written the following code ;

set mydoc to "/Users/hcl/Desktop/Sample.doc"
tell application "Microsoft Word"
activate
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.
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top