首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >应用程序常量在applescript熔滴中的应用

应用程序常量在applescript熔滴中的应用
EN

Stack Overflow用户
提问于 2022-04-04 15:50:26
回答 1查看 79关注 0票数 0

我试图为提示软件"QLab“创建applescript。

我想得到QLab的常数继续模式在Applescript滴。

代码语言:javascript
复制
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 ****»

我需要什么申报或预处理吗?我想得到那个应用程序定义的常量。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2022-04-05 08:34:32

代码语言:javascript
复制
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 tell
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/71740140

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档