ShareShortcuts
Создать форк «Organize Photos»

Создали что-то новое на основе этой команды? Поделитесь ей как форком: она станет вашей собственной командой, которой вы управляете, а обе страницы будут ссылаться друг на друга, чтобы boyvanamstel получил(а) признание.

  1. 1Получите команду и измените её в приложении «Быстрые команды». Дайте ей собственное название.
  2. 2Поделись ею из приложения «Быстрые команды» и скопируй ссылку iCloud.
  3. 3Вернись сюда, вставь ссылку и опиши, что изменилось, например: «Добавлен шаг, который использует Apple Intelligence для персонализации текста».
Загрузки
61K
Сохранено
6
Действия
11
Категория
Photos and videos
Версия
1.1
Язык
EN

Просмотр

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:

  1. Install Data Jar.
  2. Add a new variable in Data Jar.
  3. Set its Key to organizePhotosTimestamp.
  4. Set its type to Number.
  5. 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.

Что нового

Версия 1.1

Fix epoch time by starting at midnight instead of noon.

История версий
1.1 20 апр 2020 г.

Fix epoch time by starting at midnight instead of noon.

1.0 19 апр 2020 г.

First release

Что делает

Действий: 11
  1. Get Value
    dk.simonbs.DataJar
  2. Date
  3. Adjust Date
  4. Format Date
  5. Find Photos
  6. Choose from List
  7. Share
  8. Show Alert
    Organize Photos
  9. Date
  10. Get Time Between Dates
  11. Set Value
    dk.simonbs.DataJar

Посмотреть как код
Бета

Все действия этой команды, записанные на Cherri — языке программирования для приложения «Быстрые команды». Отлично подходит, чтобы разобраться, как она работает.

#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"
})
Открыть в Cherri Playground Декомпилировано с помощью cherri 2.3.0 (GPL-2.0). Перед компиляцией могут понадобиться небольшие исправления.

Оценки и отзывы

Написать отзыв
–
из 5
★★★★★
★★★★
★★★
★★
★
0 ratings

Пока нет отзывов. Поделись мнением первым!

Реклама

Вам также может понравиться

См. все
Реклама