ShareShortcuts

Photos Save Time Stamp

donvy
Fazer fork de “Photos Save Time Stamp”

Criou algo novo a partir deste atalho? Compartilhe como uma derivação: ela se torna um atalho seu, que você gerencia, e as duas páginas têm links entre si para que donvy receba o crédito.

  1. 1Obtenha o atalho e altere-o no app Atalhos. Dê a ele um nome próprio.
  2. 2Compartilhe pelo app Atalhos e copie o link do iCloud.
  3. 3Volte aqui, cole o link e descreva o que mudou, por exemplo: “Adicionei uma etapa que usa a Apple Intelligence para personalizar o texto.”
Downloads
31K
Salvo
1
Ações
12
Categoria
Photos and videos
Versão
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.

Novidades

Versão 1.0

First release

Histórico de versões
1.0 19 de jul de 2023

First release

O que ele faz

12 ações
  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 as ações deste atalho escritas em Cherri, uma linguagem de programação para o app Atalhos. Ótimo para aprender como ele 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 no Cherri Playground Descompilado com cherri 2.3.0 (GPL-2.0). Pode precisar de pequenos ajustes antes de compilar.

Avaliações e comentários

Escrever uma avaliação
–
de 5
★★★★★
★★★★
★★★
★★
★
0 ratings

Ainda não há avaliações. Seja o primeiro a compartilhar o que você pensa!

Publicidade

Você também pode gostar

Ver tudo
Publicidade