How to find picture in Photos that shows up as wallpaper (after Systems Preferences work) in Mojave I have a large Photos library with approximately 100+ folders in My Album. I have set System Preferences Desktop to use my complete Photos library as source for wallpaper.
Occasionally I have a desktop wallpaper I would like to find the original Photos picture and folder in My Albums where it is located.  

Earlier, in this forum,  I found this command:  

osascript -e 'tell app "finder" to get posix path of (get desktop picture as alias)'
/Users/snaguru/Pictures/Photos Library.photoslibrary/Masters/2013/09/29/20130929-164330/P1010004.JPG


When I search in Photos for P1010004.JPG I get displayed 16 pictures, none of which is the specific pictures used as wallpaper I am interested in. I have tried to use some parts of this path name to search in Photos but come up with a Not Found response.

Is there a way to find out the exact location in Photos (My Albums and sub-folder/sub-directory) of the original picture used as the wallpaper?
Here's a different approach:
http://osxdaily.com/2011/11/20/show-the-location-path-of-current-wallpaper-in-mac-os-x/
In essence, type the following commands in Terminal.app:


Reveal the file path of the current wallpaper on the Desktop:

defaults write com.apple.dock desktop-picture-show-debug-text -bool TRUE; killall Dock
Once revealed, hide the file path from the Desktop:

defaults write com.apple.dock desktop-picture-show-debug-text -bool FALSE; killall Dock


It works this way on all recent macOS versions from 10.10 Yosemite onward (including Catalina).