美文网首页AlfredPython开发
利用alfred运行python脚本

利用alfred运行python脚本

作者: 鸭梨山大哎 | 来源:发表于2017-01-18 23:43 被阅读40次

本质上是python调用osx的终端程序来运行python脚本,代码中的ipython也可以改为python,只不过python有时候不太好用,容易报错!
(当然,前提是你的电脑安装了ipython)

tell application "Terminal"
    do script "ipython /Users/Documents/python学习/chacha.py"
end tell

如下图。

Paste_Image.png

相关文章

网友评论

    本文标题:利用alfred运行python脚本

    本文链接:https://www.haomeiwen.com/subject/whgbbttx.html