applescript - 使用 AppleScript 运行脚本后如何关闭终端?
问题描述
我有一个打开终端并运行脚本的子程序。
看起来像这样
on run_python()
tell application "Terminal"
set currentTab to do script ("cd Desktop/")
do script ("python3 demo.py") in currentTab
end tell
end run_python
我想知道如何在运行脚本后关闭该终端选项卡。你能帮助我吗?
解决方案
推荐阅读
- oauth - 谷歌登录不适用于 iOS Instagram 应用
- python - 使用 python librtmp 和 nginx 重定向 rtmp 流
- regex - Vb net Regex 检索数据直到特定关键字或字符串结尾
- vb.net - 相对控件定位在带有滚动条的 Winforms MDI 子项中工作不正确,VB.NET
- django - 如何获取包含评论的帖子的pk?
- javascript - Leaflet.Spin for Ionic 4
- python - Python 输出格式不正确,openpyxl 输出到 LibreOffice
- python - 将 Mac OS 升级到 10.15.3 后出现 x86_64-apple-darwin13.4.0-ar 和 x86_64-apple-darwin13.4.0-clang++ 错误
- c++ - 在 C++ 中以 64 位运行 mstest 测试
- javascript - jQuery.eCalendar() - 仅突出显示点击日期