ShareShortcuts

Photos Save Time Stamp

donvy
Bifurcar “Photos Save Time Stamp”

¿Creaste algo nuevo a partir de este atajo? Compártelo como bifurcación: se convierte en un atajo tuyo, que tú administras, y ambas páginas se enlazan entre sí para que donvy reciba el crédito.

  1. 1Obtén el atajo y modifícalo en la app Atajos. Ponle un nombre propio.
  2. 2Compártelo desde la app Atajos y copia el enlace de iCloud.
  3. 3Vuelve aquí, pega el enlace y describe qué es diferente, p. ej., “Se añadió un paso que usa Apple Intelligence para personalizar el texto”.
Descargas
31K
Guardado
1
Acciones
12
Categoría
Photos and videos
Versión
1.0
Idioma
EN

Photos Save Time Stamp by donvy Jul/19/2023 23:17H The shortcut prompts you to select photos. Takes the Date Taken information from the photo's Metadata, generates a timestamp, and renames the file by prepending this time stamp to the original filename. Example: from IMG_0234.jpeg to 20230718_171313-IMG_0234.jpeg Photos are saved to Files/4Archive which can be modified to your preferred directory. Setting a variable output folder will require interaction for each file which is irritating.

Novedades

Versión 1.0

First release

Historial de versiones
1.0 19 de jul. de 2023

First release

Qué hace

12 acciones
  1. Comment
    Photos Save Time Stamp by donvy Jul/19/2023 23:17H The shortcut prompts you to select photos. Takes the Date Taken information from the photo's Metadata, generates a timestamp, and renames the file by prepending this time stamp to the original filen…
  2. Select Photos
  3. Repeat with Each
  4. Set Variable
    Image1
  5. Get Details of Images
  6. Set Variable
    Filename
  7. Get Details of Images
  8. Format Date
  9. Set Variable
    Date4filename
  10. Combine Text
  11. Set Name
  12. Save File

Ver como código
Beta

Todas las acciones de este atajo escritas en Cherri, un lenguaje de programación para Atajos. Ideal para aprender cómo funciona.

#include 'actions/photos'
#define color darkblue
#define glyph photoStackAlt

/*
Photos Save Time Stamp by donvy 
Jul/19/2023 23:17H

The shortcut prompts you to select photos.  Takes the Date Taken information from the photo's Metadata, generates a timestamp, and renames the file by prepending this time stamp to the original filename.

Example: from IMG_0234.jpeg to
20230718_171313-IMG_0234.jpeg

Photos are saved to Files/4Archive which can be modified to your preferred directory. Setting a variable output folder will require interaction for each file which is irritating. 
*/
const Photos = selectPhotos(true)

for _ in Photos {
	@Image1 = @RepeatItem
	getImageDetail(@Image1, "Name")
	@Filename
	getImageDetail(@Image1, "Date Taken")
	formatDate(, "Custom", "yyyyMMdd_HHmmss")
	@Date4filename
	joinText([map[Value:map[attachmentsByRange:map[{0, 1}:map[Type:Variable VariableName:Date4filename]] string:] WFSerializationType:WFTextTokenString] map[Value:map[attachmentsByRange:map[{0, 1}:map[Type:Variable VariableName:Filename]] string:] WFSerializationType:WFTextTokenString]], "-")
	const RenamedItem = setName(@Image1)
	saveFilePrompt(RenamedItem)
}
Abrir en Cherri Playground Descompilado con cherri 2.3.0 (GPL-2.0). Puede que necesite pequeños ajustes antes de compilarse.

Valoraciones y reseñas

Escribe una reseña
–
de 5
★★★★★
★★★★
★★★
★★
★
0 ratings

Aún no hay reseñas. ¡Sé el primero en compartir tu opinión!

Publicidad

También te puede gustar

Ver todo
Publicidad