我试图为提示软件"QLab“创建applescript。
我想得到QLab的常数继续模式在Applescript滴。
tell application "QLab" to tell front workspace
set AllCueList to every cue list
set AllCue to cue of item 1 of AllCueList
set theMode to continue mode of item 1 of AllCue as string
display dialog theMode
end tell由"script editor.app“运行,即程序成功运行,并在字符串中获得正确的常量。
但当保存为“液滴”或“应用程序”格式并运行时,可获得双角度«constant ****»。
我需要什么申报或预处理吗?我想得到那个应用程序定义的常量。
发布于 2022-04-05 08:34:32
tell application "QLab" to tell front workspace
set AllCueList to every cue list
set AllCue to cue of item 1 of AllCueList
set theMode to continue mode of item 1 of AllCue
if theMode is do_not_continue then
set theMode to "do_not_continue"
else if theMode is auto_continue then
set theMode to "auto_continue"
else
set theMode to "auto_follow"
end if
display dialog theMode
end tellhttps://stackoverflow.com/questions/71740140
复制相似问题