Created
August 16, 2019 05:37
-
-
Save kanik155/cb0ed8077d438aa2cbc78eed271ccc74 to your computer and use it in GitHub Desktop.
BridgeTalkウィンドウ
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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