LoginSignup
2
2

More than 5 years have passed since last update.

Bridgeで選択したファイルをPhotoshopでJPEGにする

Last updated at Posted at 2014-07-08
2JPEG.script
tell application "Finder"
    set myPath to parent of (path to me) as alias
    set myP to POSIX path of myPath as Unicode text
end tell
tell application "Adobe Bridge CC"
    do javascript "$.evalFile(File('" & myP & "2JPEG.jsx" & "'));"
end tell
2JPEG.jsx
#target bridge
var aTmb = app.document.selections;
for(var i=0; i<aTmb.length;i++){
    myBtalk(aTmb[i].path);
    }

function myBtalk(filename){
    var myScript = 'var myImg = new File("'+filename+'");open(myImg);myJSO= new JPEGSaveOptions();myJSO.quality=8;app.activeDocument.saveAs(myImg, myJSO, true,Extension.LOWERCASE);app.activeDocument.close();'
      var bt=new BridgeTalk;
    bt.body=myScript;
    bt.target="photoshop";
    bt.send();
    }

何となく動いてる的なメモ。
#プロファイル警告をscript側で切らなければ

2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2