This content has been marked as final. Show 5 replies
Where are you trying to create a button? Which scripting language? Which version of InDesign? Tell us more, and we'll try to answer.
I want that button should be on user interface(dialog box).
This button should be placed below the cancel button(Which is a default button as ok in the script). So, the sequences for the button Browse in the column will be at the top is "ok" button then in middle "cancel" then at the bottom "Browse".
If it's the former, we can stop now, because you can't add other buttons to that object. Instead, consider displaying two dialog boxes--one for the browsing, and another for whatever else you need to do.
Thank you for your reply.
yes, I am using app.dialogs.add() function. So, it means that i can not add a button to that object.i am planning to do one thing.
I will create three button using ScriptUI dialog box one is "Browse" other is "cancel" and "ok". then i will apply the event to each of these button. I knew how to apply event on "Browse" and "cancel".
But the problem is with ok button. I want t call my original script which i made by app.dialogs.add() is it possible what i am asking or not.
My aim is to call my origanl script when i click on ok button.
Can you send me any sample script which has same use as what i am asking for.
Thank you for your help.
If you have a standard "okay" button in script UI, you can just write:
(assuming "w" is your dialog)
do your stuff;