我不知道该怎么写这个。谁能帮忙?
"do shell script \"osascript -e 'quit app "\(clientUsed)"'""
脚本应该这样说(如果 notes 是 clientUsed)
osascript -e 'quit app "notes"'
最佳答案
试试这个(我们用 \"
转义 "
)
"do shell script \"osascript -e 'quit app \"\(clientUsed)\"'\""
对应命令:
do shell script "osascript -e 'quit app "YOUR_CLIENT_USED"'"
关于xcode - 多引号问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30079820/