I want to get current location of my macOS wallpaper. Is there a file or a command that will allow me to find this data?
I would prefer a way that would allow me to do it from the Terminal.
macOS: Mojave Public Beta
Ask Different is a question and answer site for power users of Apple hardware and software. It only takes a minute to sign up.Sign up to join this community
This article from OSXDaily.com should be helpful:
- Type the following defaults write command:
defaults write com.apple.dock desktop-picture-show-debug-text -bool TRUE;killall Dock
- Go to the desktop to see the path printed over the wallpaper images
- After you’ve retrieved the desktop picture (use Command+Shift+G to bring up the Go To Folder window), or done what you have needed to do, you can hide the path text by using the following command:
defaults delete com.apple.dock desktop-picture-show-debug-text;killall Dock
To determine the path for wallpaper via Terminal, execute the following:
osascript -e 'tell app "finder" to get posix path of (get desktop picture as alias)'