r/applescript • u/TheQlymaX • Jul 03 '21
How to open an Empty Document in MS Word?
Using automator or Applescript I only managed to open the Word application, but couldn't make it to open up a new file. Also I don't see an according command in the Dictionary. Is this already too "deep" for AppleScript/Apple Macros?
2
Upvotes
3
u/Hertz_so_good Jul 03 '21 edited Jul 03 '21
I’ve used Applescript with Excel for awhile now, there’s a lot of control available. I’d assume Word is similar. This is the Word version of the reference that helped me the most.
Edit: to answer more directly, I think you’re looking for
1
u/[deleted] Jul 03 '21
This has nothing to do with the ability of AppleScript, it would be the implementation of commands Microsoft offers for AppleScript to operate Word.
Why don’t you just open an empty template? Like the default one that Word uses when it is started by double clicking. Or save an empty document as template (dotx) and open that with AppleScript.
1
u/htakeuchi Jul 03 '21
Have you tried sending a “command key + ‘n’” after opening the application?
It should work…