我已经在我的机器上安装了 Py-Appscript,它可以与 Python 安装一起使用/Library/Frameworks/Python.framework/Versions/Current/bin/python
。
我正在尝试将此安装的 Py-Appscript 与 Automator 服务一起使用。为此,我使用Run Shell Script操作,然后将Shell设置为usr/bin/python
(不幸的是,这是我对 Python 的唯一选择)。
usr/bin/python
似乎无法访问我的第三方模块并在线崩溃:
from appscript import *
有没有办法让我usr/bin/python
访问我的第三方模块?或者有没有办法告诉 Automator 使用它/Library/Frameworks/Python.framework/Versions/Current/bin/python
?
我需要 Automator 直接从Run Shell Script操作运行 Python。任何调用 Automator 外部的 Python 脚本的操作(bin/bash
例如,通过 )执行的速度都不够快,无法发挥作用。