var diskName = "SnowLeopard"; // ルートドライブ名
var ext = [".jpg", ".png", ".gif"]; // 拡張子
var fileList = app.document.selections;
for(var i=0; i<fileList.length; i++){
for(var j=0; j<ext.length; j++){
if (fileList[i].path.indexOf(ext[j]) > -1){
myBTalk("file:///"+diskName+fileList[i].path);
}
}
}
function myBTalk(filename){
var scriptcode = 'dom = fw.getDocumentDOM();';
scriptcode += 'dom.importFile("'+filename+'", {left:0, top:0, right:320, bottom:240}, true);';
//$.writeln(scriptcode);
var btObj = new BridgeTalk;
btObj.body = scriptcode;
btObj.target = "fireworks-9";
btObj.send();
}
var diskName = "SnowLeopard"; // ルートドライブ名
var ext = [".jpg", ".png", ".gif"]; // 拡張子
var fileList = app.document.selections;
for(var i=0; i<fileList.length; i++){
for(var j=0; j<ext.length; j++){
if (fileList[i].path.indexOf(ext[j]) > -1){
myBTalk("file:///"+diskName+fileList[i].path);
}
}
}
function myBTalk(filename){
var scriptcode = 'dom = fw.getDocumentDOM();';
scriptcode += 'dom.importFile("'+filename+'", {left:0, top:0, right:320, bottom:240}, true);';
//$.writeln(scriptcode);
var btObj = new BridgeTalk;
btObj.body = scriptcode;
btObj.target = "fireworks-9";
btObj.send();
}