Changing the desktop background from the command line in El Capitan
In Yosemite, I used Automator to assign a new desktop background every day because System Preferences, for some reason, does not give you the option to make it the same across all desktops. After upgrading to El Capitan, the script no longer works, nor do any of the solutions given in various places on the internet. I have tried the following:
sqlite3 ~/Library/Application\ Support/Dock/desktoppicture.db "update data set value = 'Pictures/Wallpaper/paper.jpg'" && killall Dock - just resets the background to the default photo of El Capitan.
osascript -e 'tell application "Finder" to set desktop picture to POSIX file "Pictures/Wallpaper/paper.jpg"' - AppleEvent handler failed
defaults write com.apple.desktop Background '{default = {ImageFilePath = "Pictures/Wallpaper/6qrggmm.jpg"; }; }' && killall Dock - just makes the background solid blue