Copy link to clipboard
Copied
Hello! I'm just wondering if there is any way to create a notepad with extendscript. I'm not sure if this would utilize an edittext or not but basically, I just want some kind of notepad that can resize with the window and has support for scrolling, copy paste, etc.
Thanks!
Simple multiline UI textbox. Add it to your ScriptUI Panels.
var panelGlobal = this;
var dialog = (panelGlobal instanceof Panel) ? panelGlobal : new Window("palette", "Text Editor", undefined, {resizeable:true});
var edittext1 = dialog.add('edittext {properties: {name: "edittext1", multiline: true, scrollable: true, borderless: true}}');
edittext1.alignment = ["fill","fill"];
edittext1.minimumSize = [70, 25];
dialog.layout.layout(true);
dialog.layout.resize();
dialog.onResizing = dial...
Copy link to clipboard
Copied
As long as you don't need support for text formatting this should be doable with and EditText that you set to multi-line.
If you need more features, developing a CEP panel instead of a script is a good option. Expressionist is a good example for such a text editor that is implemented as CEP panel (this one is not intended for notes, but for expressions code - but maybe you can also use it for notes)
https://aescripts.com/expressionist/
Copy link to clipboard
Copied
Simple multiline UI textbox. Add it to your ScriptUI Panels.
var panelGlobal = this;
var dialog = (panelGlobal instanceof Panel) ? panelGlobal : new Window("palette", "Text Editor", undefined, {resizeable:true});
var edittext1 = dialog.add('edittext {properties: {name: "edittext1", multiline: true, scrollable: true, borderless: true}}');
edittext1.alignment = ["fill","fill"];
edittext1.minimumSize = [70, 25];
dialog.layout.layout(true);
dialog.layout.resize();
dialog.onResizing = dialog.onResize = function () { this.layout.resize(); }
if ( dialog instanceof Window ) dialog.show();The text won't save but wouldn't be to hard to add support for it.
Copy link to clipboard
Copied
Thanks man! This is exactly what I was looking for. Putting the "fill" in the array is what was eluding me.
Copy link to clipboard
Copied
Copy link to clipboard
Copied
We've got a note taking and todo making plugin called Post Notes if you're still looking for something like that: https://postnotes.app/
Cheers!
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more