苹果是否允许第三方应用程序,如可编写脚本 (javascript) 或 pythonista (python) 接受通过 Siri 语音命令提供的参数,如果允许,我们如何在可编写脚本 (javascript) 脚本中访问这些参数?如果没有,是否有任何解决方法可以让某人编写可编写脚本的脚本并让它(以某种方式)接受一些语音输入?
到目前为止我所知道的
Scriptable 提供了args
来自“共享表”的示例,尽管尚不完全清楚是否可以args
通过 Siri 语音接收类似的变量
// Run from a share sheet to see which
// arguments are shared. Arguments are
// passed to a script when it is run
// from a share sheet.
// Configure the types of arguments
// a script supports from the script
// setttings. This script accepts all
// types of arguments and shows an alert
// with a summary of what ia being shared.
// This is useful to examine which
// values an app shares using the
// share sheet.
let summary = args.plainTexts.length
+ " texts\n"
+ args.images.length
+ " images\n"
+ args.urls.length
+ " URLs\n"
+ args.fileURLs.length
+ " file URLs"
let alert = new Alert()
alert.title = "Shared"
alert.message = summary
alert.addCancelAction("OK")
await alert.presentAlert()