毎日午前 4 時に開始して Mac を再起動し、いくつかのメンテナンス スクリプトを実行するタスクを作成しようとしています。これは私のスクリプトです:
<?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>local.job</string>
<key>ProgramArguments</key>
<array>
<string>/usr/bin/osascript</string>
<string>/Users/Media/Scripts/RestartMac.scpt</string>
</array>
<key>RunAtLoad</key>
<false/>
<key>StandardErrorPath</key>
<string>/Users/Media/Scripts/Output/RestartMac.txt</string>
<key>StandardOutPath</key>
<string>/Users/Media/Scripts/Output/RestartMac.txt</string>
<key>StartCalendarInterval</key>
<array>
<dict>
<key>Hour</key>
<integer>04</integer>
<key>Minute</key>
<integer>00</integer>
</dict>
</array>
</dict>
</plist>
launchctl unload / load を実行して plist ファイルをリロードすると、スクリプトが実行されます。RunAtLoad パラメータを false に設定したため、少し混乱しています。多くのことを試しましたが、実行できません。ここで私のせいは何ですか?
オペレーションシステム:OS X 10.9