Replies: 1 comment 7 replies
-
This is a very difficult problem because Apple Photos is basically broken when it comes to referenced photos. Because of this I advise people to never use referenced photos. In the current implementation, Photos uses security scoped bookmarks for referenced files. This is same as any sandboxed macOS app would need to do to access a file outside of its sandbox. However, these bookmarks are signed so they can only be used by the app that has them and they cannot be changed. You could replace
I think you're referring to RepairPhotosBookmarks which is a hack of a script that attempts to fix this. I have plans to eventually roll this capability into OSXPhotos. The script hasn't been updated in some time and may not work on your version of macOS. What the script does is read the bookmark data to get the path then creates a new empty library and imports the photo into the library. This causes Photos to create the bookmark which is then copied from the temporary library into the old library. This is a hack and may or may not work in your case. Some users have had success but others have run into problems and I don't have time to help diagnose this.
If there was I'd have implemented it. I'm not aware of any other way to do fix the bookmarks. Here's an alternative workflow that would probably work with some caveats. Use osxphotos to export the photos to the new mount point. Export the AAE files (which include information to reconstruct edits). If you use a specific directory structure you'd need to use
Move all the existing photos to an album so you can remove them later. Import all the photos using
This re-imports everything into library which will create correct bookmarks then re-applies all the metadata. Go into the album you created above and delete all those photos with the old bookmark. Here's the big caveat that might make this unacceptable to you: Even if you have "copy items to the Photos library" disabled in |
Beta Was this translation helpful? Give feedback.
-
I'd like to change the mounted file sharing protocol of 300,000 referenced photos from AFP to SMB. I've gone down a rabbit hole and believe I've found the protocol and mountpoint hidden in some awful binary mess in ZFILESYSTEMBOOKMARK.ZBOOKMARKDATA for each asset. I'm trying to hack up update_photos_bookmarks.py to adjust this, but I don't really understand the world of apple of CFURL thingos just yet.
Any thoughts on how to do this? Is there another, simpler, way to alter the referenced URL prefix for all photos?
Beta Was this translation helpful? Give feedback.
All reactions