relink_media
Bulk-rewrite media source paths in FCPXML files to relink moved or renamed folders. Use prefix-based find/replace and preview changes with dry run.
Instructions
Bulk-rewrite media source paths (asset/media-rep src URLs) to relink moved or renamed media folders without opening FCP. Prefix-based: find='/Volumes/OldDrive/Media' replace='/Volumes/NewDrive/Media'. Use dry_run to preview.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| find | Yes | Old path prefix to match (plain path or file:// URL) | |
| dry_run | No | Preview changes without writing | |
| replace | Yes | New path prefix to substitute | |
| filepath | Yes | Path to FCPXML file or .fcpxmld bundle | |
| output_path | No | Output path (default: adds _relinked suffix) |