Reputation: 6707
During the pre-sandbox era, there was a way of finding the file path to the current desktop picture. I think one could use Defaults to read com.apple.desktop.plist (Library > Preferences) to see the path. Now, I suppose we aren't allowed to access this file any more. So is there an alternative way of finding the file path to the current desktop picture?
Upvotes: 0
Views: 141
Reputation: 64022
Yup, NSWorkspace
has desktopImageURLForScreen:
If you've only got one screen, that can be gotten with [NSScreen mainScreen]
.
Upvotes: 1