Document.saveAs without options picks the format from the name the
script gave, before a symbolic link is resolved, and a name without a
known extension keeps the document's format. A save that writes several
files refuses a destination that is a folder before it writes any of
them. imageCapture leaves out source paths outside the automation read
roots before it probes them. The host and scriptcheck name test lists
saveAs as a method, which it is now.