Skip to content

Instantly share code, notes, and snippets.

@rok-git
Last active September 12, 2018 07:30
Show Gist options
  • Save rok-git/8110b36dda0917e94a6cff547b0b4840 to your computer and use it in GitHub Desktop.
Save rok-git/8110b36dda0917e94a6cff547b0b4840 to your computer and use it in GitHub Desktop.
Export 4K movies taken with iPhone to other place using Photos.app and AppleScript.
tell application "Photos"
activate
tell album "動画" -- 「写真」が「ムービー」「である」スマートアルバム (Smart album that collect all movie files)
set outFolder to choose folder
set mvList to media items whose (width = 3840 or height = 3840)
export mvList to outFolder with using originals
end tell
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment