Scanne avec ton iPhone pour installer
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.
Nouveautés
Version 1.0
First release
Ce qu’il fait
12 actions-
CommentPhotos 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…
-
Select Photos
-
Repeat with Each
-
Set VariableImage1
-
Get Details of Images
-
Set VariableFilename
-
Get Details of Images
-
Format Date
-
Set VariableDate4filename
-
Combine Text
-
Set Name
-
Save File
Afficher en tant que code
Chaque action de ce raccourci écrite en Cherri, un langage de programmation pour Raccourcis. Idéal pour comprendre son fonctionnement.
#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)
}
Ouvrir dans Cherri Playground
Décompilé avec cherri 2.3.0 (GPL-2.0). Quelques corrections peuvent être nécessaires avant la compilation.
Notes et avis
Écrire un avis–
sur 5
★★★★★
★★★★
★★★
★★
★
0 ratings
Aucun avis pour le moment. Sois le premier à partager ton avis !
Publicité
Ça pourrait aussi te plaire
Publicité