Adobe InDesign problem with user interface dialog

Hi,

I have a bit of script that makes a user interface dialog in Adobe InDesign CS5. I basically borrowed most of it from the samples in the Scripting Guide. When I run the script, the “static labels” are all over the place. They should be to the left of the dropdown boxes. Why is this happening and how can I control the dialog better?

Thanks.


global mySwatches
tell application "Adobe InDesign CS5"
	set mySwatches to name of every swatch of active document
	
	set myDialog to make dialog with properties {name:"Colors"}
	tell myDialog
		
		set myDialogColumn to make dialog column
		tell myDialogColumn
			set myDialogRow to make dialog row
			tell myDialogRow
				set myDialgoColumn to make dialog column
				tell myDialogColumn
					make static text with properties {static label:"Hed Color:"}
				end tell
				set myDialogColumn to make dialog column
				tell myDialogColumn
					set mySwatchesMenu to make dropdown with properties {string list:mySwatches, selected index:4}
				end tell
			end tell
			
			set myDialogRow to make dialog row
			tell myDialogRow
				set myDialgoColumn to make dialog column
				tell myDialogColumn
					make static text with properties {static label:"text Color:"}
				end tell
				set myDialogColumn to make dialog column
				tell myDialogColumn
					set mySwatchesMenu to make dropdown with properties {string list:mySwatches, selected index:4}
				end tell
			end tell
			set myDialogRow to make dialog row
			tell myDialogRow
				set myDialgoColumn to make dialog column
				tell myDialogColumn
					make static text with properties {static label:"bullet Color: "}
				end tell
				set myDialogColumn to make dialog column
				tell myDialogColumn
					set mySwatchesMenu to make dropdown with properties {string list:mySwatches, selected index:4}
				end tell
			end tell
			
		end tell
	end tell
	
	show myDialog
	
end tell

Model: iMac
Browser: Firefox 3.6.6
Operating System: Mac OS X (10.6)

Whooops! Never mind.


global mySwatches
tell application "Adobe InDesign CS5"
    set mySwatches to name of every swatch of active document
    
    set myDialog to make dialog with properties {name:"Colors", min width:12000}
    tell myDialog
        tell (make dialog column)
            tell (make border panel)
                tell (make dialog column)
                    
                    make static text with properties {static label:"Options"}
                end tell
                tell (make dialog column)
                    tell (make dialog row)
                        tell (make dialog column)
                            make static text with properties {static label:"Hed Color:", min width:50}
                            make static text with properties {static label:"Text Color:", min width:50}
                            make static text with properties {static label:"Bullet Color: ", min width:50}
                            
                        end tell
                        tell (make dialog column)
                            set mySwatchesMenu to make dropdown with properties {string list:mySwatches, selected index:0}
                            set mySwatchesMenu to make dropdown with properties {string list:mySwatches, selected index:0}
                            set mySwatchesMenu to make dropdown with properties {string list:mySwatches, selected index:0}
                        end tell
                    end tell
                end tell
            end tell
        end tell
    end tell
    
    show myDialog
    
end tell