osx - Finding Path to Current Desktop Picture -


during pre-sandbox era, there way of finding file path current desktop picture. think 1 use defaults read com.apple.desktop.plist (library > preferences) see path. now, suppose aren't allowed access file more. there alternative way of finding file path current desktop picture?

yup, nsworkspace has desktopimageurlforscreen: if you've got 1 screen, can gotten [nsscreen mainscreen].


Comments

Popular posts from this blog

css - Which browser returns the correct result for getBoundingClientRect of an SVG element? -

gcc - Calling fftR4() in c from assembly -

Function that returns a formatted array in VBA -