0

ユーザーにリストから選択するように求めるアプレットを作成しています。リストには現在 169 の項目があります。リストが生成されると、ウィンドウはディスプレイの上部から下部まで拡張され、ユーザーにとっては少し圧倒されます。

「リストから選択」によって生成されたウィンドウの境界プロパティを編集する方法を誰かが知っているかどうか疑問に思っています。

これが私が使用しているコードです(リストをコンパイルして「pkgList」に保存するための別のコードは含まれていません):

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

私は AppleScript に非常に慣れていないので、詳細な説明と類推は大歓迎です。:)

4

1 に答える 1

0

代わりにCocoaDialogを使用できます。

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
于 2013-07-08T21:48:28.090 に答える