How do I get the current wallpaper on a Mac? Just point me to an API function so I can Google more.
Edit: I think I found it. [NSUserDefaults standardUserDefaults] mentioned at http://lists.apple.com/archives/student-dev/2004/Aug/msg00140.html
Also possible from shell: defaults read com.apple.desktop Background
And from AppleScript: http://discussions.apple.com/thread.jspa?messageID=7111272