Skip to main content
Peter Kahrel
Community Expert
Community Expert
October 13, 2010
Question

ScriptUI for dummies

  • October 13, 2010
  • 18 replies
  • 27922 views

I've been putting together a text on ScriptUI, to a large extent to clear up things for myself (hence the title!). It's an introduction to ScriptUI, much of it very basic, here and there going into some detail. It's not a finished product, and comments, suggestions, and corrections are welcome. If you're interested, you can find the PDF file here: http://www.kahrel.plus.com/indesign/scriptui.html

Peter

This topic has been closed for replies.

18 replies

schroef
Inspiring
January 19, 2022

This document helped me out so much!!!

 

Had this issue this weekend with localize and the dialog buttons getting squared. Apperently in photoshop, the mina dialog buttons only are round when they have some sort of naming term. Not sure what that is.
I had a chat with Joonas about this, he also doesnt seem to know what triggering this.
https://github.com/joonaspaakko/ScriptUI-Dialog-Builder-Joonas/issues/96

My question is, these fold out menu is that available in SCRIPTUI?
This is the HDR toning dialog from Photoshop. I cant seem to find this in the PDF nor do i see it on Joonas his website.

Peter Kahrel
Community Expert
Community Expert
January 21, 2022

Unfortunately that's not possible in ScriptUI.

 

P.

Dario_D
Participant
February 8, 2018

This booklet is an impressive, precious resource and the little I can do is to take a minute and thank you!

Legend
November 29, 2013

Wonderful book, Great Work Peter !!!

It's really very helpful.

Vandy

Inspiring
December 3, 2013

Could you check this for me:

To avoid creating duplicate entries in a list, you can use the find method to

check if the item is already in the list:

if (myList.find (myNewItem) != null) //should be: if (myList.find (myNewItem) == null)

myList.add ("item", myNewItem);

Peter Kahrel
Community Expert
Community Expert
December 8, 2013

Hello Przemek,

You right, that should be if (. . . == null)

Thanks for pointing it out, I've corrected it now.

Peter

On Tue, 03 Dec 2013 13:28:13 -0000, przemek_macko

Peter Kahrel
Community Expert
Community Expert
June 29, 2011

Updated the guide to version 1.6 (http://www.kahrel.plus.com/indesign/scriptui.html).

Peter

July 1, 2011

Hi Peter,

Thank you so much for the updated version of ScriptUI. This book is much helpful for all indesign scripters.

I need one clarification regarding your book of

InDesign mit JavaScript automatisieren.

This book is in German language. Any English version available? If so please let me know.

Thanks again for your excellent work.

Regards

Peru.

Peter Kahrel
Community Expert
Community Expert
July 1, 2011

Peru,

Look here: http://oreilly.com/catalog/9780596802523/

Peter

Known Participant
March 19, 2011

Very nice guide, thanks for sharing it.

Peter Kahrel
Community Expert
Community Expert
January 30, 2011

ScriptUI for dummies updated. Same link as before.

Peter

Peter Kahrel
Community Expert
Community Expert
March 18, 2011

Posted update 1.4.

Peter

Jongware
Community Expert
Community Expert
March 18, 2011

No, you didn't.

Peter Kahrel
Community Expert
Community Expert
November 1, 2010

Posted version 1.1, same link: http://www.kahrel.plus.com/indesign/scriptui.html

Version history on that page and at the back of the PDF.

Peter

Peter Kahrel
Community Expert
Community Expert
December 15, 2010

Posted version 1.2, same link: http://www.kahrel.plus.com/indesign/scriptui.html

Version history on that page and at the back of the PDF.

Peter

Loic.Aigon
Legend
December 15, 2010

We should build a statue in your honour

Thank you so much for that wonderful guide. Adobe should be inspired for their own scriptUI documentation.

Ok I am a little bit enthusiastic but I really enjoy your book !

Loic

PS: And thanks a lot for the reference to my websites

Inspiring
October 20, 2010

Hi,

i'm very new with scriptui, i tried the example in the PDF but end up having a blank dialog...

result:

code here

var myWindow = new Window("dialog");
var myMessage = myWindow.add("statictext");
myMessage = "Hello world";
myWindow.show();

pls advice..

Thank you so much...

tomaxxi
Inspiring
October 20, 2010

Hey!

You forgot to add 'text' property to myMessage

myMessage.text = "Hello World";

Hope that helps.

--

tomaxxi

http://indisnip.wordpress.com/

Inspiring
October 20, 2010

Oops.... i'm soo embarrased by that...

Now it works!!!

Thank you soo much...

October 14, 2010

Awesome!

I have been struggling with the lack of informative examples on this subject!

Like your previous works, it is very simple to understand yet complex enough to assist the more accomplished scripters.

I did find a minor glich on page 22:

The hyperlink: "Gabe Harbs's script" points to this url: "http://www.kahrel.plus.com/indesign/sidenotes.html"

I do not know if this is the intended target.

Peter Kahrel
Community Expert
Community Expert
October 15, 2010

> I do not know if this is the intended target.

Certainly not! Thanks for pointing that out.

Peter

Jongware
Community Expert
Community Expert
October 14, 2010

".. Jongware's fabulous CS object browsers .." (cough)

Is there a way to create (or mimic) radio button selection groups?

In this script I'm working on (for Illustrator!), I'd like to have either a full choice of attributes in the panel, or simply "Match teeth size". I'd like something like a radiobutton at the top of the panel, as well as one instead of the checkbox -- if the panel radiobutton is selected, the attributes should be editable, but disabled when it's not.

Peter Kahrel
Community Expert
Community Expert
October 15, 2010

What about this: if you check "Match teeth size" the panel with the three fields is disabled and the "Center Hole" prompt and field are enabled. Uncheck "Match teeth size" and the panel is enabled and "Center hole" disabled. That way you don't need any radio buttons.

Peter

Harbs.
Legend
October 15, 2010

Re. "Match Teeth Size":

I'd probably do it Peter's way as well, but IIRC you don't need to enable each one individually. You can just enable/disable the parent panel...

Harbs