1

なぜこれが機能しないのですか?

アップルスクリプト:

set script_path to "$HOME/Desktop"
do shell script "python & script_path & hello_world.py"

Python スクリプト:

#!/usr/bin/env python
print "Content-Type: text/html"
print
print """\
<html>
 <head>
  <title>Python - Hello World</title>
 </head>
 <body>
  Hello World
 </body>
</html>

"""

エラー:

現在のアプリケーションに do shell script "python & script_path & hello_world.py" を伝える --> error "sh: script_path: command not found sh: hello_world.py: command not found" number 127 結果: error "sh: script_path: command not found sh: hello_world.py: コマンドが見つかりません" 番号 127

4

1 に答える 1