0
Applescript. Making dependant buttons in dialog windows
New Here
,
/t5/indesign-discussions/applescript-making-dependant-buttons-in-dialog-windows/td-p/1171065
Feb 24, 2009
Feb 24, 2009
Copy link to clipboard
Copied
Hello, I am learning on making dialogs with Adobe InDesign CS3.
Is it possible to "grey out" some parts of the dialog window, depending on a certain selection of a radio button? I mean: I have a radio button group and depending on which radio button is selected, I want to grey out some other options in the very same dialog window that are not relevant anymore (for example some check boxes).
And if possible can anyone provide me with an example code?
And if impossible can it probably be done with Applescript Studio? I don't know.
Kind regards,
Bertus Bolknak
Is it possible to "grey out" some parts of the dialog window, depending on a certain selection of a radio button? I mean: I have a radio button group and depending on which radio button is selected, I want to grey out some other options in the very same dialog window that are not relevant anymore (for example some check boxes).
And if possible can anyone provide me with an example code?
And if impossible can it probably be done with Applescript Studio? I don't know.
Kind regards,
Bertus Bolknak
TOPICS
Scripting
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Valorous Hero
,
/t5/indesign-discussions/applescript-making-dependant-buttons-in-dialog-windows/m-p/1171066#M269955
Feb 24, 2009
Feb 24, 2009
Copy link to clipboard
Copied
Hi Bertus,
In JavaScript – in ScriptUI, not in InDesign’s dialogs – you can set enable property of control objects to false.
As to Applescript Studio, I think, It’s possible too, but I’m not sure – attributes pane in the Info window has ‘Enabled’ checkbox. I did an interface with radio buttons group (BTW in Applescript Studio it’s called matrix) long ago, but it was quite a hassle. I was doing it by trial-and-error method as couldn’t find an intelligible reference. But the interface came out more attractive, and what was more important to me, Cyrillic characters were fully supported, as opposed to InDesign’s dialogs.
Kasyan
In JavaScript – in ScriptUI, not in InDesign’s dialogs – you can set enable property of control objects to false.
As to Applescript Studio, I think, It’s possible too, but I’m not sure – attributes pane in the Info window has ‘Enabled’ checkbox. I did an interface with radio buttons group (BTW in Applescript Studio it’s called matrix) long ago, but it was quite a hassle. I was doing it by trial-and-error method as couldn’t find an intelligible reference. But the interface came out more attractive, and what was more important to me, Cyrillic characters were fully supported, as opposed to InDesign’s dialogs.
Kasyan
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
LEGEND
,
/t5/indesign-discussions/applescript-making-dependant-buttons-in-dialog-windows/m-p/1171067#M269956
Feb 24, 2009
Feb 24, 2009
Copy link to clipboard
Copied
>Cyrillic characters were fully supported, as opposed to InDesigns dialogs.
Script UI supports unicode characters...
Script UI supports unicode characters...
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Advocate
,
LATEST
/t5/indesign-discussions/applescript-making-dependant-buttons-in-dialog-windows/m-p/1171068#M269957
Feb 24, 2009
Feb 24, 2009
Copy link to clipboard
Copied
You can do it in AppleScript Studio, although it's a steep learning<br />exercise. You can also do it in FaceSpan.<br /><br />-- <br />Shane Stanley <sstanley@myriad-com.com.au><br />AppleScript Pro Sessions <a href=http://scriptingmatters.com/aspro>
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

