You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

automator -- Creating a new Microsoft Word file in the finder location

I am trying to re-use the same AppleScript code that works for creating a text file, for creating a new Word document.

1)

This works and I am able to create a new text file in the currently open folder in Finder.

****

tell application "Finder" to make new file at (the target of the front window) as alias

****


2) However, this does NOT work.

******

tell application "Microsoft Word" to make new file at (the target of the front window) as alias

******


I am indeed able to see all the Word actions in my library including Create New Word Document or Save Word Documents and so on...


Thanks in advance..


-sarafn

iMac 27″, macOS 11.1

Posted on Dec 29, 2020 8:53 PM

Reply
Question marked as Top-ranking reply

Posted on Dec 30, 2020 5:52 AM

The AppleScript syntax is not universal. You would need to open the Microsoft Word Dictionary in Script Editor and figure out what is required to tell Word to create a new document.

Word probably doesn't understand (the target of the front window) as those are Finder terms.


If there is an Action to create a word document, use that instead of the AppleScript. However, I think those only work with Word 2011 which doesn't work on Big Sur.

Similar questions

1 reply
Question marked as Top-ranking reply

Dec 30, 2020 5:52 AM in response to sarafn

The AppleScript syntax is not universal. You would need to open the Microsoft Word Dictionary in Script Editor and figure out what is required to tell Word to create a new document.

Word probably doesn't understand (the target of the front window) as those are Finder terms.


If there is an Action to create a word document, use that instead of the AppleScript. However, I think those only work with Word 2011 which doesn't work on Big Sur.

automator -- Creating a new Microsoft Word file in the finder location

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.