How to programmatically get the path to the wallpaper on the active desktop?

Solution 1:

tell application "System Events" to picture of desktop 1

View all properties:

tell application "System Events" to get properties of every desktop