Open indesign links in photoshop
Hi everyone,
Since im very new to scripting... i m requesting your help to fix this issue..
My need is to export the indesign page as jpg and then open the jpgs' in photoshop and save as psd.
I tried to the below script... indesign page exported as jpg, but the exported jpg is not opened in photoshop.
please help me on this....
Main();
function Main() {
var result=CreateBridgeTalkMessage();
var myOutFolderPathName = "C:\\Users\\Unique\\Desktop\\JPG\\";
doc_name = app.activeDocument.name.split(".indd")[0];
myPDFFilePath = myOutFolderPathName+"\\"+(doc_name) +'.jpg';
app.activeDocument.exportFile (ExportFormat.JPG, myPDFFilePath, false );
function CreateBridgeTalkMessage() {
var bt = new BridgeTalk();
var re;
bt.target = "photoshop";
bt.body = openFile.toString();
bt.onResult = function(e) {
re= e.body;
}
bt.send(900);
return re;
}
}
function openFile() {
app.bringToFront();
app.displayDialogs = DialogModes.NO;
app.preferences.rulerUnits = Units.MM;
var myOutFolderPathName = Folder("C:\\Users\\Unique\\Desktop\\JPG\\");
var fileList =myOutFolderPathName.getFiles("*.*");
for (var a in fileList){
var thisDoc = open(File(fileList));
}
return true;
}
Many thanks for the support.
