SaveAs

Anyone, especially newbies, asking for help with Photoshop Scripting and Photoshop Automation - as opposed to those contributing to discussion about an aspect of Photoshop Scripting

Moderators: Tom, Kukurykus

rasoetan

SaveAs

Post by rasoetan »

Hello,

I have a psd file (000_000_RAS_880.psd) opend in CS5. I'm trying to save it to a different file name using the code below, but I get a "General Photoshop Error' message. Any insight is greatly appreciated.

Thanks,
Raphael

--------------------------------------------------------------
var saveFile = new File("903_101_RAS_880.psd");
var psdSaveOptions = new PhotoshopSaveOptions();
psdSaveOptions.layers = true;

app.activeDocument.saveAs (saveFile, psdSaveOptions);
------------------------------------------------------------

Professional AI Audio Generation within Adobe Premiere Pro - Download Free Plugin here

txuku

SaveAs

Post by txuku »

Hello rasoetan

Tests with this :

Code: Select allvar saveFile = new File( app.activeDocument.path + "/" + "903_101_RAS_880.psd");
rasoetan

SaveAs

Post by rasoetan »

Thanks! It worked!