使用extendscript,任何人都可以告诉我如何打开一个对话框,点击一个文件夹突出显示它,然后确定对话框并将该文件夹的路径作为字符串返回。
非常感谢 鲍勃
答案 0 :(得分:3)
试试这样:
var myFolder = Folder.selectDialog ("Select a folder");
if(myFolder != null){
if(myFolder instanceof Folder){// <-- This is not really needed
alert("path: " + myFolder.path);
alert("fsName: " + myFolder.fsName);
alert("fullName: " + myFolder.fullName);
alert("name: " + myFolder.name);
}
}