I am creating scripts to automatically switch the wallpapers on my multiple displays. System Events exposes almost all of the options accessible in the Wallpapers pane of system settings, but not the option to "Show on all Spaces".
I want to add that option to the following script:
tell application "System Events"
set intervalSeconds to 900.0
set wpDir to POSIX file "/Path/to/Folder/"
set picture rotation of every desktop to 1
set random order of every desktop to true
set pictures folder of every desktop to wpDir
set change interval of every desktop to intervalSeconds
do shell script ("killall Dock")
end tell
Also, the foregoing script does not seem to successfully set the interval value, although it does not throw an error. Not sure why that does not work.
Any thoughts or insights would be welcome.
Thank you