PhotoScript
PhotoScript copied to clipboard
Automate Apple / MacOS Photos app with python. Wraps applescript calls in python to allow automation of Photos from python code.
I avoided the problem by using `--photokit`. Regards to Apple Script exporting, upon a 1000 video export, about 20 will be exported as a small plist XML file upon the...
**Describe the bug** Currently when processing photos in my Photos Library via the API an exception is raised on a small subset of photos that I attempt to fetch by...
I'm reaching an exception deleting a subfolder: ```python import photoscript library = photoscript.PhotosLibrary() A = library.create_folder("A") B = library.create_folder("B", folder=A) library.delete_folder(B) ``` will throw an exception on macOS 13.0 (22A380)...
``` >>> photoscript.PhotosLibrary().selection Traceback (most recent call last): File "", line 1, in File "/Users/rhet/.pyenv/versions/osxphotos/lib/python3.11/site-packages/photoscript/__init__.py", line 132, in selection uuids = run_script("photosLibraryGetSelection") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/rhet/.pyenv/versions/osxphotos/lib/python3.11/site-packages/photoscript/script_loader.py", line 18, in run_script return...
See [this](https://github.com/RhetTbull/osxphotos/issues/934) discussion. I don't think there's a way around this using AppleScript. Maybe once I get a direct SQL interface implemented we can optionally use that if the user...
Currently, all classes eagerly validate the UUID at instance creation. This was put in place primarily to support [osxphotos](https://github.com/RhetTbull/osxphotos) but adds a (usually unnecessary) Python-AppleScript round trip. Remove the water...
findfiles and glob usage won't work for some cases of special characters or unicode. See changes done to osxphotos and backport to PhotoScript.
At least on Catalina, PhotosLibrary.selection appears to hang (never returns) if nothing was selected.
Photos chokes on adding large lists to albums. Chunk into smaller sizes