sequoia apple script to retrieve the name of the current wallpaper
I've used an apple script in previous versions of MacOs to retrieve the name of my current work space wallpaper. What worked before, of course, no longer works. I've got a script that is supposed to do the job, but it is only returning the name of the folder in which the current wallpaper file resides, not the image name.
Script:
tell application "Finder"
set theDesktopPicture to desktop picture as alias
set theWallpaperName to name of theDesktopPicture
display dialog "The current wallpaper filename is:" & return & theDesktopPicture & return & return & theWallpaperName with icon 1
end tell
If someone can tell me how to return the filename in the script, I'd appreciate it. It's really a pain to have to reinvent the wheel with every iteration of MacOs.
MacBook Pro 14″, macOS 15.7