Thanks for trying to help, but even after replacing the original script with what you wrote, it still just selects the first picture in the folder, not the one that's being used for the wallpaper. Oddly enough, it also opens finder behind all of my other windows, which is not a problem, but not what I would have expected.