ShareShortcuts
Создать форк «Free Next»

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

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

For checking when you have a particular day free next, select a day of the week, and how many weeks to look ahead and the Shortcut returns your schedule for all those particular days. Just swipe between each day to see when you might have a gap in your schedule.

Что нового

Версия 1.0

First release

История версий
1.0 7 фев 2019 г.

First release

Что делает

Действий: 43
  1. Text
  2. Get Dictionary from Input
  3. Set Variable
    OutputKit
  4. List
  5. Choose from List
  6. Date
  7. Set Variable
    Date
  8. Ask for Input
    No of weeks?
  9. Repeat
  10. Get Variable
  11. Adjust Date
  12. Set Variable
    Date
  13. Format Date
  14. Text
  15. Text
  16. Find Calendar Events
  17. Count
  18. Get Variable
  19. Repeat with Each
  20. Text
  21. Add to Variable
  22. Find Calendar Events
  23. Count
  24. Get Variable
  25. Repeat with Each
  26. Text
  27. Add to Variable
  28. Find Reminders
  29. Count
  30. Get Variable
  31. Repeat with Each
  32. Text
  33. Add to Variable
  34. Text
  35. Text
  36. Set Name
  37. Add to Variable
  38. Nothing
  39. Set Variable
    AllDay
  40. Set Variable
    Reminders
  41. Set Variable
    Appointments
  42. Get Variable
  43. Quick Look

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

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

#include 'actions/calendar'
#define color darkblue
#define glyph calendar

getDictionary(nil)
@OutputKit = nil
list("Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday")
chooseFromList(nil, "Which day")
currentDate()
@Date = nil
const AskForInput = prompt("No of weeks?", "Number")

repeat _ for AskForInput {
	// TODO: Get Variable not supported: Assign variable here to '@Date'.
	adjustDate("", "")
	@Date = nil
	formatDate("")
	rawAction("is.workflow.actions.filter.calendarevents", {
		"WFContentItemFilter": ""
	})
	count(nil, "Items")
	// TODO: Get Variable not supported: Assign variable here to 'CalendarEvents'.
	for _ in nil {
		@AllDay += "{@RepeatItem2['Title']} {@OutputKit['badgegray']}{@RepeatItem2['Calendar']}{@OutputKit['/badge']}\n<br>\n"
	}
	rawAction("is.workflow.actions.filter.calendarevents", {
		"WFContentItemFilter": ""
	})
	count(nil, "Items")
	// TODO: Get Variable not supported: Assign variable here to 'CalendarEvents1'.
	for _ in nil {
		@Appointments += "{@RepeatItem2['Start Date']} - {@RepeatItem2['End Date']} {@RepeatItem2['Title']} {@OutputKit['badgegray']}{@RepeatItem2['Calendar']}{@OutputKit['/badge']}<br>"
	}
	rawAction("is.workflow.actions.filter.reminders", {
		"WFContentItemFilter": ""
	})
	count(nil, "Items")
	// TODO: Get Variable not supported: Assign variable here to 'Reminders'.
	for _ in nil {
		@Reminders += "{@RepeatItem2['Due Date']} - {@RepeatItem2['Title']} {@OutputKit['badgegray']}{@RepeatItem2['List']}{@OutputKit['/badge']}<br>"
	}
	setName(nil, "{}.html")
	@Output = nil
	nothing()
	@AllDay = nil
	@Reminders = nil
	@Appointments = nil
}
// TODO: Get Variable not supported: Assign variable here to '@Output'.
quicklook(nil)
Открыть в Cherri Playground Декомпилировано с помощью cherri 2.3.0 (GPL-2.0). Перед компиляцией могут понадобиться небольшие исправления.

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

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

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

Реклама

Ещё от entee

См. все

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

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