Photos doesn't seem to like giving out info on images in a smart folder. I have this problem with my applescripts and photos_time_warp also has it. It gives an error when you run it when the selected image is in a smart folder:
>photos_time_warp -V --timezone +0300
Could not get selected photos. Ensure Photos is open and photos to process are selected. Photos got an error: Can’t get media item id "0443D7E6-B7BF-448A-B993-D78814CB8987/L0/001" of album id "4C5C4E62-780B-40C5-AC2D-31FCCA924EA5/L0/040". (-1728) app='Photos' range=12071-12118
So it might be worth catching this kind of error and giving a more helpful error, and also including this info in the instructions.
FYI, I try to catch this in my scripts by switching to the main album and highlighting the same photo via interaction with the menus. Probably not an option for this scenario:
tell application "System Events" to tell process "Photos" to click menu item "Show in All Photos" of menu 1 of menu bar item "File" of menu bar 1
Photos doesn't seem to like giving out info on images in a smart folder. I have this problem with my applescripts and photos_time_warp also has it. It gives an error when you run it when the selected image is in a smart folder:
So it might be worth catching this kind of error and giving a more helpful error, and also including this info in the instructions.
FYI, I try to catch this in my scripts by switching to the main album and highlighting the same photo via interaction with the menus. Probably not an option for this scenario:
_Originally posted by @Jmuccigr in https://github.com/RhetTbull/photos_time_warp/discussions/10_