Okay, he estado peinando la internet para una solución related, ya que realmente encuentro que las fotos son un mal reemplazo para la apertura.
Este es un script de AppleScript que reuní en base a varios bits elegidos de preguntas similares, pero que no hicieron exactamente lo que necesitaba. Puedo decirle que este funciona con OS X El Capitan, Apple Fotos y mis 70 GB de fotos y movies, agregué algunos pasos de verificación de errores, podría hacerse con más elegancia, por lo que cualquier comentario más que bienvenido. La razón por la que tiene la lógica para elegir álbumes basados en el nombre es que de lo contrario la rutina pasaría por todos los álbumes, incluidos los predeterminados y exportar todo. Utilizo yyy como inicio de cada álbum, por lo que es fácil seleccionar cuáles quiero exportar. Posiblemente, puede buscar cómo verificar la carpeta principal o alguna otra lógica para garantizar que el script se presente sobre los correctos.
--AppleScript to export albums from Apple Pictures
--Works with OSX El Capitan, Pictures V1.3
--Utilization: populate the preliminary variables with the folder to export to.
--It is going to create it within the desktop however you should utilize the choice approach
--to create it wherever).
--Additionally populate the checklist of prefixes to search for.
--The script searches for them adopted by an area, I take advantage of YYYY as
--prefix of all my albums. You might want so as to add your personal logic there.
set theFolderName to "Exported Pictures"
set albumprefixlist to {"2014","2013","2010"} -- Instance checklist
set theDestinationRootFolder to POSIX file (POSIX path of file ((path to desktop as textual content) & theFolderName & ":")) as textual content
--Various:
--set theDestinationRootFolder to "/Customers/[username]/Desktop/Exported Pictures" as POSIX file as textual content -- units the vacation spot folder (use a legitimate path)
inform utility "Finder"
if not (exists theDestinationRootFolder) then
my makeFolder(theDestinationRootFolder)
log "Created root folder:" & theDestinationRootFolder
else
log "Root Folder already exists:" & theDestinationRootFolder
finish if
finish inform
inform utility "Pictures"
repeat with i in albums
set tAlbum to get identify of i
set tFolder to (theDestinationRootFolder & tAlbum) as textual content
strive
set nYear to textual content 1 via ((offset of " " in tAlbum) - 1) of tAlbum as integer
-- We use strive right here as a result of in lots of instances there shall be an error changing to integer
finish strive
set tYear to textual content 1 via ((offset of " " in tAlbum) - 1) of tAlbum
if tYear is in albumprefixlist then
-- This checks the checklist, different exams will be performed
-- Various:if tAlbum begins with "2010" then
-- Various: if nYear < 2010 then
log "Processing " & tAlbum
if (rely of media gadgets in i) > 0 then
log "Exporting " & tAlbum & " to: " & tFolder
inform utility "Finder" to set fileExists to exists my POSIX file tFolder
if not fileExists then
my makeFolder(tFolder) -- create a folder named (the identify of this album) in dest
inform utility "Pictures"
strive
export (get media gadgets of i) to (tFolder as alias) with utilizing originals
on error
log "Error with the export command, test the album's content material"
finish strive
finish inform
else
log "Error, folder exists, reasonably not export there"
finish if
else
log "Skipping export as it's an Empty album"
finish if
else
log "Skipping album " & tAlbum
finish if
finish repeat
log "Course of accomplished"
finish inform
on makeFolder(tPath)
do shell script "mkdir -p " & quoted type of (POSIX path of tPath)
finish makeFolder