Skip to content

photos: handle IPmi (iMessage) selection + use preview derivatives#1

Open
johansolve wants to merge 1 commit into
fltman:mainfrom
johansolve:photos-ipmi-preview
Open

photos: handle IPmi (iMessage) selection + use preview derivatives#1
johansolve wants to merge 1 commit into
fltman:mainfrom
johansolve:photos-ipmi-preview

Conversation

@johansolve

Copy link
Copy Markdown

Photos refuses to coerce id of p for IPmi class items and rejects exporting them via media item id "..." references. We extract the uuid from AppleScript's coercion error message (which dumps the whole selection list literally) and look up the preview derivative via osxphotos — IPmi items live under scopes/syndication/resources/ derivatives/ and load fine that way.

Per-item export with try-wrapper as fallback: lets normal items export even when an IPmi item is in the selection, instead of failing the whole batch.

Photos refuses to coerce `id of p` for IPmi class items and rejects
exporting them via `media item id "..."` references. We extract the
uuid from AppleScript's coercion error message (which dumps the whole
selection list literally) and look up the preview derivative via
osxphotos — IPmi items live under `scopes/syndication/resources/
derivatives/` and load fine that way.

Per-item export with try-wrapper as fallback: lets normal items export
even when an IPmi item is in the selection, instead of failing the
whole batch.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant