为“设置边界”属性;“从列表中选择”;在AppleScript中?

为“设置边界”属性;“从列表中选择”;在AppleScript中?,applescript,bounds,filechooser,Applescript,Bounds,Filechooser,我正在制作一个小程序,提示用户从列表中进行选择,我的列表目前有169项。当列表生成时,窗口从显示屏的顶部延伸到底部,这对用户来说有点难以承受 我想知道是否有人知道如何编辑由“从列表中选择”生成的窗口的bounds属性 下面是我正在使用的代码(不包括编译列表并将其存储在“pkgList”中的单独代码): 我对AppleScript非常陌生,因此非常感谢详细的解释和类比。:) 您可以改为使用: 谢谢你的资源!我特别喜欢泡泡通知!:) set userChoice to (choose from li

我正在制作一个小程序,提示用户从列表中进行选择,我的列表目前有169项。当列表生成时,窗口从显示屏的顶部延伸到底部,这对用户来说有点难以承受

我想知道是否有人知道如何编辑由“从列表中选择”生成的窗口的bounds属性

下面是我正在使用的代码(不包括编译列表并将其存储在“pkgList”中的单独代码):

我对AppleScript非常陌生,因此非常感谢详细的解释和类比。:)

您可以改为使用:


谢谢你的资源!我特别喜欢泡泡通知!:)
set userChoice to (choose from list pkgList with title "Title" with prompt "Choose file:" OK button name "OK" cancel button name "Cancel" without empty selection allowed) as string
set l to {"a a", "b"}
set l2 to ""
repeat with i in l
    set l2 to l2 & quoted form of i & " "
end repeat

do shell script "/Applications/CocoaDialog.app/Contents/MacOS/CocoaDialog \\
standard-dropdown --title Title --text Text --items " & l2
set {button, answer} to paragraphs of result
if button is 1 then return
item {answer + 1} of l