Answered
Has anyone solved the problem of open images with a specified path of Photoshop?
Hello everyone.
I have three versions of Photoshop, and sometimes I need to use one version to work better.
I have always wanted to open the image from the ID using the specified PS version.
Does anyone have a solution?
Or can we never avoid the constraints of new BridgeTalk()?
var item=app.selection[0];
var paths=item.itemLink.filePath;
openPathsInPhotoshop(paths);
unction openPathsInPhotoshop(paths) {
const DELIMITER = '###';
var photoshop = BridgeTalk.getSpecifier("photoshop");
if (!photoshop)
return alert("BridgeTalk couldn\'t find Photoshop.");
// send script via BridgeTalk
var bt = new BridgeTalk();
bt.target = photoshop;
// our variables
bt.body = '(#FN#)("#P#","#D#");'
.replace('#D#', DELIMITER)
.replace('#P#', paths.join(DELIMITER))
.replace('#FN#', openPaths);
};
