Answered
Exporting Adobe Illustrator to Photoshop Script
Apologies for what I suspect will be a relatively simple fix, I'm quite new to scripting/coding. I've been trying to figure out how to export a .ai file from Illustrator to a .psd Photoshop file.
When I attempt to export from .ai to .jpg, this code works fine:
var myDoc = app.activeDocument;
myDoc.exportFile("C:/Users/Home/Downloads/Blank3.jpg", ExportType.JPEG)
However, I always get the error message 1320-Invalid Enumeration Value when I attempt the same with Photoshop like this:
var myDoc = app.activeDocument;
myDoc.exportFile("C:/Users/Home/Downloads/Blank3.PSD", ExportType.Photoshop)
I've checked the documentation, which specifically called out that for photoshop I must include the file
extension (PSD) in the file specification, but that hasn't helped. What am I doing wrong?
