Pré-visualização
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.
Novidades
Fix epoch time by starting at midnight instead of noon.
O que ele faz
11 ações-
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 as ações deste atalho escritas em Cherri, uma linguagem de programação para o app Atalhos. Ótimo para aprender como ele 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"
})
Avaliações e comentários
Escrever uma avaliaçãoAinda não há avaliações. Seja o primeiro a compartilhar o que você pensa!