It all depends on what you're asking, exactly. When you say you want to open another dialog when the user selects a radio button, we need to know how you're creating the dialog in the first place. There are two main ways to do this--1.) using InDesign's built-in dialog object, or 2.) using ScriptUI, which is an ExtendScript object. How can you tell which is which? If you're using app.dialogs.add() to create the dialog box, you're using the InDesign object; if you're not, you're using ScriptUI.
If you're using the InDesign dialog object (in the ESTK, open the Object Model Viewer, then select the InDesign DOM corresponding to your version of InDesign), then you can't really do this without closing the original dialog box--all InDesign dialogs are modal. While you can, apparently, attach event listeners to the InDesign dialog object, I've never done it for precisely this reason. I'll take a look as soon as I get a few minutes.
It's nice to hear from you after so long. You helped me with an extremely large Applescript project years ago (just about the time we were allowed to make an Applescript larger than 32kb as a matter of fact--that dates the project, I'm sure). Anyway I'm glad to see you are still around to help out.
I am using InDesign's built-in dialog object; that I know for sure. I am just beginning to learn how to do anything more complex than throw up an alert so I am in the intense learning mode right now.
I took a quick look at the ScriptUI documentation in the InDesign Scripting Tutorial and found the documentation to be so scanty as to be useless, which is why I went back to the dialog object. I see that you have recommended a better source for learning the SUI object. I will look at it. Hopefully, it will set me on the right path. I will keep in touch.
Thanks for your very complete offer of help.
Nice to know that you remember me! This forum basically doesn't--after I left Adobe, I had to get a new Adobe ID. Which is why I seem to have only posted <25 messages.:-)
Sadly, I'm mostly too busy *using* InDesign scripting to get here, these days.
Sorry about the ScriptUI examples in the InDesign tutorial. My thinking was that ScriptUI had so many examples of its own that I didn't need to add more in the InDesign-specific scripting documentation. But I agree that it's hard to sort out which DOM is which! I'm also not sure of the state of many of the examples--most of that was taken on by other people from CS 5.5 on (I was working on the CS Extension Builder, at that point). It doesn't really look like many of them have been touched since then.
Peter Kahrel's ScriptUI documentation is really good--as is everything else Peter does--thanks to Larry G. Schneider for providing a link.
I have always maintained that the better you know the documentation, the more it can help you. For example, when I first purchased Borland Builder for personal use (was it really 20 years ago?) I suffered horribly trying to figure out how to use their DBMS system through their documentation. After fighting the docs for five years or so, I became a whiz at tracking down what I needed to know.
BTW, as an aside, and offline of course, I am anxious to exchange SF notes with you. If and when you have the time, drop me a line. I still have a large collection of Fanthorpe novels on my bookshelf, thanks to your recommendation.
Thank you, Mr. Schneider for your pointer to that very fine document. I have downloaded it and will keep it close.