如何在 applescript droplet 中使用应用程序常量

How to use Application Constants in applescript droplet

我正在尝试为提示软件“QLab”创建 applescript。
我想在 Applescript droplet 中获取 QLab 的常量 [continue mode]。

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" ,程序 运行 成功并在字符串中获得正确的常量。

但当另存为“droplet”或“application”格式并运行ning时,得到Double Angle «constant ****»

我需要任何声明或预处理吗? 我想获得该应用程序定义的常量。

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