Vista previa
This Shortcut shows you just the photos that were added after the last time you organized your library. Relies on Data Jar to store the date.
I often take pictures that I then add to (shared) albums. Figuring out where I left off the last time is time consuming. The Organize Photos Shortcut makes it easy.
Setup:
- Install Data Jar.
- Add a new variable in Data Jar.
- Set its Key to organizePhotosTimestamp.
- Set its type to Number.
- Set the value to 0.
You're now ready to run the Shortcut for the first time.
I recommend starting with a clean slate (after organizing your photos), because the first time you'll run the Shortcut it'll show all your recent photos. Confirm you want to update the last organize date.
Take a few photos, run the Shortcut again and notice that it only shows these most recent pictures.
Novedades
Fix epoch time by starting at midnight instead of noon.
Qué hace
11 acciones-
Get Valuedk.simonbs.DataJar
-
Date
-
Adjust Date
-
Format Date
-
Find Photos
-
Choose from List
-
Share
-
Show AlertOrganize Photos
-
Date
-
Get Time Between Dates
-
Set Valuedk.simonbs.DataJar
Ver como código
Todas las acciones de este atajo escritas en Cherri, un lenguaje de programación para Atajos. Ideal para aprender cómo funciona.
#define color blue
#define glyph camera
rawAction("dk.simonbs.DataJar.GetValueIntent", {
"keyPath": "organizePhotosTimestamp"
})
currentDate()
adjustDate(, "")
const FormattedDate = formatDate()
rawAction("is.workflow.actions.filter.photos", {
"WFContentItemFilter": "",
"WFContentItemInputParameter": "FormattedDate",
"WFContentItemLimitEnabled": false,
"WFContentItemSortOrder": "Oldest First",
"WFContentItemSortProperty": "Creation Date"
})
const ChosenItem = chooseFromList(Photos, true)
share(ChosenItem)
alert("Update last organize date?", "Organize Photos")
currentDate()
rawAction("is.workflow.actions.gettimebetweendates", {
"WFInput": "{}",
"WFTimeUntilFromDate": "1 Jan, 1970 0:00",
"WFTimeUntilUnit": "Seconds"
})
rawAction("dk.simonbs.DataJar.SetValueIntent", {
"keyPath": "organizePhotosTimestamp",
"values": "TimeBetweenDates"
})
Valoraciones y reseñas
Escribe una reseñaAún no hay reseñas. ¡Sé el primero en compartir tu opinión!