launchd を使用して 10 分ごとに Python スクリプトを実行しようとしています。これは cron を使えば簡単ですが、launchd の操作方法を理解しようと数時間試みましたが、うまくいきませんでした。にあるバージョンの python を使用してい/Users/turtle/bin/ます。私の launchd ファイル ( com.foobar) は次のようになります。
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
    <dict>
        <key>Label</key>
        <string>com.foobar</string>
        <key>ProgramArguments</key>
        <array>
            <string>/Users/turtle/bin/python</string>
            <string>/Users/turtle/code/baz.py</string>
        </array>
        <key>StartCalendarInterval</key>
        <dict>
            <key>Minute</key>
            <integer>10</integer>
        </dict>
    </dict>
</plist>
私が実行すると:
launchctl load /Library/LaunchAgents/com.foobar
私は得る:
launchctl: Couldn't stat("/Library/LaunchAgents/com.foobar"): No such file or directory nothing found to load
誰でも私を助けることができますか?御時間ありがとうございます。