Skip to content

Instantly share code, notes, and snippets.

@miguelmorin
miguelmorin / dedup-iMovie-library.py
Last active Jan 24, 2020
When you import movies into iMovie 10 libraries, the file is always copied, wasting space and hindering editability. This script replaces the copy with a symlink, reclaiming disk space.
View dedup-iMovie-library.py
#!/usr/bin/env python3
#
# Usage: dedup-imovie-library.py LIBRARY ORIGINALS
#
# Public gist:
# https://gist.github.com/miguelmorin/92cd8b820fd0135bf0f7d5fea90dc3f1
#
# This code was inspired by this post and gist, and converted to Python
# https://benhollis.net/blog/2014/06/28/hard-linking-videos-to-save-space-in-your-imovie-library/
# https://gist.github.com/bhollis/6682c8b6b6357e2fedc5
You can’t perform that action at this time.