Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
1

Is there any way to create a notepad using extendscript?

Explorer ,
Jan 06, 2021 Jan 06, 2021

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!

TOPICS
Error or problem , How to , Scripting , User interface or workspaces
870
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Explorer , Jan 08, 2021 Jan 08, 2021

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
...
Translate
Community Expert ,
Jan 07, 2021 Jan 07, 2021

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/

Mathias Möhl - Developer of tools like BeatEdit and Automation Blocks for Premiere Pro and After Effects
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jan 08, 2021 Jan 08, 2021

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jan 08, 2021 Jan 08, 2021

Thanks man! This is exactly what I was looking for. Putting the "fill" in the array is what was eluding me.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jan 08, 2021 Jan 08, 2021
That’s exactly what had me scratching my head when I first wrote this.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Aug 17, 2021 Aug 17, 2021
LATEST

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!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines