launchd error "Could not find and/or execute program specified by service" I am trying to get a script to run from launchd at regular intervals. The service loads but does not run the script.

The script itself is a very simple test script as follows:

echo "Hello World!" &gt;&gt; /Users/rhiannon/Library/Application\ Support/Script\ Testing/test.txt


The script is saved as /Users/rhiannon/Library/Application\ Support/Script\ Testing/test-launchd.sh (with permissions rwxr-xr-x) and happily runs from the command line.

I have a plist file as follows:

&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"&gt;
&lt;plist version="1.0"&gt;
    &lt;dict&gt;
        &lt;key&gt;Label&lt;/key&gt;
        &lt;string&gt;uk.co.myco.timedshelltests&lt;/string&gt;
        &lt;key&gt;Program&lt;/key&gt; 
        &lt;string&gt;/Users/rhiannon/Library/Application\ Support/Script\ Testing/test-launchd.sh&lt;/string&gt; 
        &lt;key&gt;StartInterval&lt;/key&gt;
        &lt;integer&gt;60&lt;/integer&gt;
    &lt;/dict&gt;
&lt;/plist&gt;


The plist file is saved as /Users/rhiannon/Library/LaunchAgents/uk.co.myco.timedshelltests.plist with permissions rw-r--r--.

I load the service using

launchctl load uk.co.myco.timedshelltests.plist


With logging set with sudo launchctl log level debug, I see the following error in the system log:

com.apple.xpc.launchd[1] (uk.co.myco.timedshelltests[13505]): Could not find and/or execute program specified by service: 2: No such file or directory: /Users/rhiannon/Library/Application\ Support/Script\ Testing/test-launchd.sh
com.apple.xpc.launchd[1] (uk.co.myco.timedshelltests[13505]): Service setup event to handle failure and will not launch until it fires.
com.apple.xpc.launchd[1] (uk.co.myco.timedshelltests[13505]): Service exited with abnormal code: 78



I'm pretty certain the permissions are correct, and I know the path is correct. What else could be wrong?
Launchd does not perform word splitting. Remove the escape characters \ from the following line-

&lt;string&gt;/Users/rhiannon/Library/Application\ Support/Script\ Testing/test-launchd.sh&lt;/string&gt;