擅长:python、mysql、java
<p>快速逐步创建clickable.app以启动您的python脚本。</p>
<p>启动Apple ScriptEditor(位于/Applications/Utilities/)并在编辑器中键入以下内容:</p>
<pre><code>tell application "Terminal"
do script with command "python /path/to/your/script.py"
end tell
</code></pre>
<p>之后,只需点击save并选择另存为应用程序。</p>
<p>注:如果有人读到这篇文章,知道如何摆脱你启动.app时打开的终端窗口,请告诉我。</p>
<p>如果您想更高级,请查看<a href="https://sveinbjorn.org/platypus" rel="nofollow noreferrer">Platypus</a>。</p>