https://github.com/bbkr/macphotosexporter
Exports folders and albums structure from macOS Photos app to directory tree.
https://github.com/bbkr/macphotosexporter
Last synced: about 1 year ago
JSON representation
Exports folders and albums structure from macOS Photos app to directory tree.
- Host: GitHub
- URL: https://github.com/bbkr/macphotosexporter
- Owner: bbkr
- License: artistic-2.0
- Created: 2022-12-15T22:32:21.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-12-15T23:23:41.000Z (over 3 years ago)
- Last Synced: 2025-04-10T01:18:00.121Z (about 1 year ago)
- Language: Raku
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# MacPhotosExporter
Exports folders and albums structure from macOS Photos app to directory tree.
# Instructions
Copy `migrate.raku` file to your `Pictures` directory.
Install [Docker](https://docs.docker.com/get-docker/).
Execute in terminal (replace `me` with your user name in path):
```
docker run --volume /Users/me/Pictures:/Pictures --interactive --tty alpine sh
```
It should log you to Alpine Linux console in Docker container. Type 4 commands there:
```
apk update
apk add rakudo zef sqlite-libs
zef install --/test DBIish
raku /Pictures/migrate.raku
```
It should print detected Folders, Albums and Photos and will create `TopLevelAlbums` directory containing them in exactly the same layout.
# Article
Migration code logic is explained [here](https://dev.to/bbkr/migrate-macos-photos-folders-and-albums-to-plain-tree-of-directories-2c1).