Error message: impossible to get 1 item of missing value (can't open Word files in Word 2016 with Automator)

When I test in Automator my process to Find & Replace text in multiple word files I receive the error message in the title. It seems that Automator can't open the files (I use Word Office 2016).


Here's my process (mine are in French so I'm translating):


Get specified folder items (to access the files)

Obtain folder content (because someone said to use this)

Open Word files

Find & Replace

Find & Replace

Find & Replace (the number of times needed to find & replace multiple lines)

Save file

Close file


I can see that the script gets the files, obtains the content, but fails at the Open Word files (that's when I get the error of impossible to obtain item 1 of missing value, and of course no files show up in the results panel for this part of the script.


Please help if there's a way around this. I tried opening the files in Word before running the script and using this process:


Get specified folder items (to access the files)

insert content to Word file (replace content selected)

Find & Replace

Find & Replace

Find & Replace (the number of times needed to find & replace multiple lines)

Save file

Close file


But it didn't work (and I didn't think it would, but they linked together, so I hoped so).


I'm in Automator Version 2.6 (419) & El Capitan OS X Version 10.11.6 (15G31)

MacBook Air, OS X Mavericks (10.9.4)

Posted on Aug 18, 2016 3:29 AM

Reply
1 reply

Aug 18, 2016 4:51 AM in response to JEL888

The only reason you'd need "Obtain Folder Content" is if the items you Specified were folders. If you are getting the word files, then there is no need for the other action.


I don't have the Office actions, so I can't completely sort this out, but it appears that the "Open Word Files" isn't getting the right input. You can step through the workflow and look at the results of each step. That may help determine why it is not getting what it expects.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Error message: impossible to get 1 item of missing value (can't open Word files in Word 2016 with Automator)

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