Launching a script clicking a button

How do I launch a script building a simple interface for it?

Thank you

Hi,

the simplest way is

display dialog "Launch script \"myScript\"?" buttons {"Cancel", "Launch"} default button 2
run script ((path to scripts folder as Unicode text) & "myScript.scpt")

Thank you Stefan.

Now I want to go a little bit forward.

How to do the same with Interface Builder, e.g. if I need to insert other controllers?

No,

just create a button, define a name in the AppleScript tab, connect it to the script clicking the radio button at the bottom, activate the on clicked handler, click edit and write your code in Xcode.

Take a look at the example projects in /Developer/Examples/AppleScript Studio/