如何创建一个 Automator 应用程序,该应用程序获取一个文件作为参数,并在 macOS Monterey 中使用该文件运行 python 脚本?
如何使用 automator 创建一个 mac 应用程序,获取一个我“放入”其中的文件并使用该文件作为参数执行 python 脚本?
我尝试了建议在 Automator 中创建“服务”的各种问题的解决方案,但我在蒙特雷的 Automator 中没有看到这样的选项
How do I create a mac application using automator, that gets a file that I "drop" in it and executes a python script with this file as an argument?
I tried solutions from various questions that suggest creating a "service" in Automator, but I don't see such option in Automator in Monterey
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
/bin/bash/
<图片src="https://i.sstatic.net/PpW4h.jpg" alt="创建的自动化的屏幕截图">
"$1"
获取文件作为参数):编辑:
如果您希望能够一次将多个文件拖放到应用程序上并按顺序为每个文件运行脚本,则可以将最后一行更改为以下代码:
/bin/bash/
"$1"
to get a file as argument):EDIT:
If you want to be able to drop several files on your app at once and run a script for each of them in a sequence, you can change the last line to the following code: