Scripting Bug: importFile() no longer works in CC2018
importFile() worked fine in CC2017, now in CC2018 it throws an "Illegal Argument" error.
var f = File('c:/temp/Example File.pdf'); // to test, add a path to a valid file in your system
var idoc = app.activeDocument; // have any document open
Carlos Canto shared this idea