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)