Connect dialog window to the others applications.

I want to make an scritp/application connecting applescript and InDesign.
How I can do something like this:

  1. Open InDesign and create document “ this part is clear for me
  2. Under InDesign display dialog window build in Interface Builder “ this is hard part
  3. Fill fields and return to InDesign “ this seems easy too, just make global variables in applescript

I have also another question: Where can I find basic properties of Interface Builder elements like Text Field, Button, etc.