【发布时间】:2020-04-08 10:57:33
【问题描述】:
我有一个 AppleScript 脚本,它正在调用我想转换为 JavaScript (JXA) 的 shell 命令,但我看不到 do shell script 的等效项。
这是使用 AppleScript 的脚本:
#!/usr/bin/osascript
on run argv
set convertScript to "export -i '" & first item of argv & "' -o '" & second item of argv & ".csv'"
do shell script convertScript
end run
我的桌面应用程序调用此脚本,然后该脚本执行 shell 命令。
【问题讨论】:
标签: applescript osascript javascript-automation