嗨,我正在尝试创建和applescript来在剧院提示软件'Qlab‘中运行。
tell application id "com.figure53.qlab.3"
set cueChannel to 16
set cueControlChangeNumber to 16
set cueControlValue to 0
make type "MIDI"
set newCue to last item of (selected as list)
set channel of newCue to cueChannel
set q name of newCue to DiGiCo
set command of newCue to control_change
set byte one of newCue to cueControlChangeNumber
set byte two of newCue to cueControlValue
end tell我需要做的是让'byte two‘从0开始,从1增加到最大值127。
这个脚本每次都需要单独运行。
有什么想法吗?
发布于 2015-12-23 11:15:43
是的,您使用了repeat块。不确定您希望在每次迭代中重复多少代码。
tell application id "com.figure53.qlab.3"
set cueChannel to 16
set cueControlChangeNumber to 16
repeat with cueControlValue from 0 to 127
make type "MIDI"
set newCue to last item of (selected as list)
set channel of newCue to cueChannel
set q name of newCue to DiGiCo
set command of newCue to control_change
set byte one of newCue to cueControlChangeNumber
set byte two of newCue to cueControlValue
end
end tellhttps://stackoverflow.com/questions/34426178
复制相似问题