带引号的参数的实时代码 "send"

Livecode "send" with argument that has quotes

我想这样做:

Send "MenuPick " & quote & ShortForm & quote to stack "Abbrevs"

堆栈 "Abbrevs" 有一个处理程序 MenuPick 可以执行通常的菜单选择操作。除了具有嵌入引号的 ShortForm 参数外,这工作正常。

如何发送带有嵌入式双引号的参数?

这些不起作用:

好吧,我为此苦苦挣扎了一段时间,发现可以在 Send 期间评估 arg,如下所示:

Put "Send " & quote & "MenuPick ShortForm" \
        & quote & " to stack " & quote & "Abbrevs" \
        & quote into MyCmd
Do MyCmd

假设您要发送带引号的文字字符串 "ShortForm" 作为消息的参数,请尝试先将带引号的字符串放入变量中。

put quote & "ShortForm" & quote into tPick
send "menuPick tPick" to stack "Abbrevs"