Skip to content

Instantly share code, notes, and snippets.

@kanik155
Created August 16, 2019 05:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kanik155/cb0ed8077d438aa2cbc78eed271ccc74 to your computer and use it in GitHub Desktop.
Save kanik155/cb0ed8077d438aa2cbc78eed271ccc74 to your computer and use it in GitHub Desktop.
BridgeTalkウィンドウ
(function () {
var bt = new BridgeTalk();
bt.target = "photoshop";
bt.body = WinObject.toString() + "\nnew WinObject();"
bt.send();
function WinObject() {
var window = new Window("palette", "title", undefined, {
closeButton: true
});
window.size = [360, 180];
window.alignment = [ScriptUI.Alignment.FILL, ScriptUI.Alignment.TOP];
var btn = window.add("button", undefined, "CLOSE");
btn.alignment = [ScriptUI.Alignment.FILL, ScriptUI.Alignment.FILL];
btn.onClick = function () {
window.close();
}
window.show();
window.onClose= function() { window.show(); }
}
}());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment