Scaling "display dialog" windows and buttons?

In Applescript studio, is there a way to get the buttons to “grow” in a “display dialog” statement, depending on the amount of text in the button?

For example, using just plain old applescript editor, the following would “grow” the button to fit all the text:

display dialog "hello world" buttons {"Lots of text here", "Cancel"} default button 1

But in Applescript studio, the “Lots of text here” gets truncated.

Also, the dialog window size doesn’t scale to how much text is in it. It all seems static, and I don’t really want to makea custom dialog box.

Help? Thanks

The frameworks used by Xcode/studio projects to draw dialogs and other windows are different from those used by applescripts in the script editor. Their behavior is not as flexible and can not be directly controlled.

Sorry… :frowning:
j

You could try telling something else to display the dialog:

tell application "System Events" to display dialog "hello world" buttons {"Lots of text here", "Cancel"} default button 1

Thanks anyway, I ended up doing it like this which worked fine:

display alert as warning message "hello world"  default button "Lots of text here" alternate button "Cancel"