🎉Presentando la nueva función en La Comunidad. ¡Votos!🎉

¿Alguien te ayudó o alguna respuesta o Sugerencia de Usuarios permitió resolver tu problema? Selecciona la flecha que apunta hacia arriba para votar a favor. Tus comentarios sirven de ayuda para otras personas. Obtén más información sobre cuándo debes votar a favor: Vota en la Comunidad de soporte de Apple.

Parece que nadie ha participado en esta conversación desde hace mucho tiempo. Para empezar una conversación, haz una nueva pregunta.

icloud

Buenos días,

Como podría exportar las fotos y videos del icloud manteniendo las características de fecha y hora? Ahora al exportarlas me cambia el nombre y pone como fecha de creación hoy.

Grácias

iPhone 5, iOS 10.2.1

Publicado el 24/03/2017 12:36 a. m.

Responder
1 respuesta

24/03/2017 05:43 a. m. en respuesta a Iolandafopi

Porque el fichero que se crea hoy es con fecha de hoy... internamente, en los metatados, sí conserva la fecha original en la que se tomó la foto.


Con este script puedes convertir todos los nombres en su correspondiente fecha (de captura) en "fecha+tiempo+serial+extension" rápidamente.


Lo copias y lo pegas en un documento nuevo del Editor de Scripts, lo ejecutas y seleccionas todos los ficheros que quieras renombrar.


set serial to 1
set pix_list to choose file with prompt "Choose an Image" with multiple selections allowed
set addzeros to length of ((count of pix_list) as string)
tell application "Image Events"
  repeat with _pix in pix_list
  try
  set this_image to open alias (_pix as text)
  
  tell this_image
  repeat with i from 1 to the count of metadata tags
  set this_tag to metadata tag i
  set the tag_name to the name of this_tag
  set the tag_value to the value of this_tag
  if tag_name = "creation" then
  set newName to my replaceText(" ", "-", my replaceText(":", "", tag_value))
  end if
  end repeat
  end tell
  
  tell application "Finder"
  set extension to name extension of _pix
  set izena to name of _pix
  set finalizena to newName & "-" & my add_leading_zeros(serial, addzeros) & "." & extension
  set the name of _pix to finalizena
  end tell
  end try
  set serial to serial + 1
  end repeat
end tell

on replaceText(find, replace, subject)
  set prevTIDs to text item delimiters of AppleScript
  set text item delimiters of AppleScript to find
  set subject to text items of subject
  set text item delimiters of AppleScript to replace
  set subject to "" & subject
  set text item delimiters of AppleScript to prevTIDs
  return subject
end replaceText

on add_leading_zeros(this_number, max_leading_zeros)
  return text (max_leading_zeros * -1) thru -1 of ("00000000000000000" & this_number)
end add_leading_zeros

icloud

Bienvenido a la Comunidad de soporte de Apple
Un foro donde los clientes de Apple se ayudan entre sí con sus productos. Comienza con tu Apple ID.