Getting desktop background on Mac
问题 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 回答1: Updated Answer (Mavericks and newer) Starting with Mavericks, Apple writes the Desktop images to