【发布时间】:2011-01-06 19:42:57
【问题描述】:
我已经在我的机器上安装了 Py-Appscript,它可以与/Library/Frameworks/Python.framework/Versions/Current/bin/python 的 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)的执行速度都不够快,无法发挥作用。
【问题讨论】: