AppleScript Error using Adobe Photoshop CC to batch convert CMYK profiles
The problem appears to be the tiff options.

It's missing in the front of the object class:TIFF save options,

That line as a whole (as it should be):

save current document in file newFilePath as TIFF with options {class:TIFF save options, embed color profile:true, save layers:true, save spot colors:true} appending lowercase extension


How I figured it out:

Step 1:

First thing I did was open a new file in the Script editor and ran:

tell application "Adobe Photoshop CC 2017"

    return current document

end tell


Sure enough returns a document name as long as a document is open in PS. So no surprises there.

Step 2.

Took your script and stripped away all but the essentials and replaced input and output with static values. Well technically the input was just an open document...

set fileName to "Filename.tif"
set newFilePath to "/Users/joonaspaakko/Desktop/test/output/" &amp; fileName
tell application "Adobe Photoshop CC 2017"

    convert to profile "High Quality Print" intent absolute colorimetric with dithering

    save current document in file newFilePath as TIFF with options {embed color profile:true, save layers:true, save spot colors:true} appending lowercase extension

    close current document saving no

end tell


Still complains about the document, but I know that is not the issue based on my first test. 

Step 3.

So I took a look at the reference document for applescript and in there I looked at the tif save example. Can be found if you search for: save current document in file myFile as TIFF in the pdf.

I'm not too experienced with Applescript in general let alone scripting Photoshop with it... So I don't know if there are better ways to debug the code, but Script Editor was complaining about that save line and highlighting it, so I figured that is where the error must be... or around that area.

Just manually looked for differences and possible syntax errors, and I found out it was missing the class:TIFF save options, in the beginning of the tif options object and adding that in fixed the error.