

> error number -1728 from item "Macintosh HD:Users:peter:Library:Caches.desktop:69948584:DSKPhotosRootSource13725B" Get item "Macintosh HD:Users:peter:Library:Caches.desktop:69948584:DSKPhotosRootSource13725B" > error number -1728 from POSIX file "/Users/peter/Library/Caches/.desktop/69948584/DSKPhotosRootSource"ĭo shell script "sqlite3 ~/Library/Application\\ Support/Dock/desktoppicture.db \"SELECT data.value FROM preferences INNER JOIN data on preferences.key=16 and preferences.picture_id=1 and preferences.data_id=data.ROWID\"" Get POSIX file "/Users/peter/Library/Caches/.desktop/69948584/DSKPhotosRootSource" > "/Users/peter/Library/Caches/.desktop/69948584/DSKPhotosRootSource" Here is the error message: tell application "System Events"

Set rotationImage to fullPath & thePictures Set thePictures to (do shell script "sqlite3 ~/Library/Application\\ Support/Dock/desktoppicture.db \"SELECT data.value FROM preferences INNER JOIN data on preferences.key=16 and preferences.picture_id=7 and preferences.data_id=data.ROWID\"") Set picPath to (POSIX file posix_path) as string Set posix_path to (pictures folder of desktop 2) Here is the script: tell application "System Events" Under macOS Catalina the scripts are not working anymore. One script for the main monitor and another one for the second monitor. I used to use two AppleScript scripts to find out the file name of the actual wallpaper image from desktop 1 and desktop 2 (dual monitor mode) under macOS Mojave.
