下拉列表中的结局脚本 select

finalescript select from dropdown

你如何select finalescript 列表中的项目?

我想在不打开对话框的情况下将某首音乐按纯五度移调。我知道如何设置单选按钮和键入文本,但是如何 select 从下拉列表中获取值?

到目前为止我的代码:

menu item "Utilities/Transpose..."
select "Perfect Fifth" from list //Does not work
press "OK"

啊,找到了

来自文档:

Selecting an item from a List

FinaleScript supports selecting from simple text-only lists. Simple lists can be found in the Measure Number Regions dialog box, Preferences dialog box, or Document Options dialog box.

Note that most of Finale lists are not supported directly by FinaleScript, including the following dialog boxes:Expression Selection, Percussion Layout Selection, Articulation Selection, and ScoreManager. The following commands are equivalent:

select list "display colors"
list "display colors"


所以,代码将是

menu item "Utilities/Transpose..."
select list "Perfect Fifth"
press "OK"