ShareShortcuts

Photos Save Time Stamp

donvy
„Photos Save Time Stamp“ forken

Hast du auf Basis dieses Kurzbefehls etwas Neues erstellt? Teile ihn als Fork: Er wird zu deinem eigenen Kurzbefehl, den du selbst verwaltest, und beide Seiten verlinken aufeinander, damit donvy die Anerkennung erhält.

  1. 1Lade den Kurzbefehl und ändere ihn in der Kurzbefehle-App. Gib ihm einen eigenen Namen.
  2. 2Teile ihn in der Kurzbefehle-App und kopiere den iCloud-Link.
  3. 3Komm hierher zurück, füge den Link ein und beschreibe, was sich geändert hat, z. B. „Einen Schritt hinzugefügt, der Apple Intelligence nutzt, um den Text zu personalisieren.“
Downloads
31K
Gesichert
1
Aktionen
12
Kategorie
Photos and videos
Version
1.0
Sprache
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.

Neue Funktionen

Version 1.0

First release

Versionsverlauf
1.0 19. Jul 2023

First release

Was er macht

12 Aktionen
  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

Als Code ansehen
Beta

Jede Aktion dieses Kurzbefehls als Cherri ausgeschrieben, eine Programmiersprache für Kurzbefehle. Ideal, um zu lernen, wie er funktioniert.

#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)
}
In Cherri Playground öffnen Mit cherri 2.3.0 (GPL-2.0) dekompiliert. Eventuell sind kleine Korrekturen nötig, bevor es kompiliert wird.

Bewertungen und Rezensionen

Rezension schreiben
–
von 5
★★★★★
★★★★
★★★
★★
★
0 ratings

No reviews yet. Be the first to share what you think!

Werbung

Das gefällt dir vielleicht auch

Alle anzeigen
Werbung