Attach a Panel to Window like "Display dialog"

I want to attach a Panel to the main Window but can’t seem to figure out a way to do so.

I know this works:

display dialog "Here is a Dialog" attached to window "ServerLauncher"

But I want to attache the Panel called “loginPanel” to the Window “ServerLauncher”

display panel "loginPanel" attached to window "ServerLauncher"

The above doesn’t work… :frowning:

Model: MacBookPro
Browser: Firefox 3.0.10
Operating System: Mac OS X (10.5)


take a look at the examples starting with Display in /Developer/Examples/AppleScript Studio/

Thanks Stefan,

going through them now.


Hi, it´s not easy to say what´s wrong in this case. There can be many reasons.
If you don´t mind zip your project and place a link here. I´ll take a look at it.

Greetings, Ronald

Hi Ronald,

In my case the problem was with the missing keyword “window”

display panel window "loginPanel" attached to window "ServerLauncher"