java - 将 jar 运行到苹果脚本中
问题描述
我需要从带有苹果脚本的打包应用程序中启动一个 .jar 文件(带有这些参数)。
我尝试使用警告框,但它不起作用...
on run {input, parameters}
set arg_s to ""
set sh to "DIR=$(dirname \"$0\") && cd \"$DIR\" || exit; pwd"
set pwd to do shell script "/bin/bash -c " & sh's quoted form & " " & (path to me)'s POSIX path's quoted form
repeat with argument in parameters
copy arg_s & " " & argument to arg_s
end repeat
display notification arg_s with title arg_s subtitle arg_s sound name "Frog"
-- do shell script "java -jar " & pwd & "/Application.app/Contents/Java/App.jar" & result
return input
end run
请看错误截图:
非常感谢..
解决方案
推荐阅读
- python - 运行 kaldi gst 现场演示时出现 intel mkl 致命错误
- java - 八进制数可以在java中以指数形式表示吗?
- android - 尝试在真实设备上运行 react-native 但 installDebug 发生错误
- devexpress - 将新行从 gridview 添加到另一个 gridview
- python - 异或位串
- angular - 有角日期前管吗?
- javascript - 获取 svg 元素的坐标返回 SVGAnimatedLength
- triggers - 在 azure 数据工厂中触发,每天仅在 8:30 和 6:00 之间运行,间隔 30 分钟
- python - Docker 中的气流 initdb 抛出 ImportError: cannot import name 'import_string'
- dafny - 赋值的 LHS 必须表示一个可变变量