Skip to main content
Known Participant
May 12, 2023
Question

Simple panel with 2 buttons

  • May 12, 2023
  • 3 replies
  • 1325 views

Hi! I have two files with JSX scripts, but instead of choosing file manually, I want Plugin/panel with two clickable buttons which activate each script. Its possible? I try to use chatgpt to make it but no success.

 

This topic has been closed for replies.

3 replies

Zesty_wanderlust15A7
Known Participant
May 16, 2023

As another option: You can call a script from within an action, and there's panels out there with buttons that you can connect to an action.

Stephen Marsh
Community Expert
Community Expert
May 15, 2023

@Jakub25857702e4sw – You are going to need to know and understand the difference between an ExtendScript/JavaScript ScriptUI "palette (or window)" vs a "dialog" – vs. a CEP or UXP panel.

 

https://creativepro.com/files/kahrel/indesign/scriptui.html

 

Inspiring
May 15, 2023

are you talking about dialogs? Palette leave it alone put the scripts on the post so we can help you why call external scripts and not put them inside the whole script dialog?

Inspiring
May 14, 2023

here you can create a panel with the buttons you need https://scriptui.joonas.me/

Known Participant
May 15, 2023

Generate panel with buttons is not a problem, I have problem to trigger external jsx by pressing button in panel, nothing works

 

Inspiring
May 15, 2023

but the panel is uxp or cep? if it's uxp you can't, because adobe has restricted this. If it's a cep panel can you load the panel with the 2 jsx's as I have some time to see where the problem is.