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

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

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

Use this shortcut to add reminders for when your devices are charged to user defined levels.

Что нового

Версия 1.0

First release

История версий
1.0 30 авг 2020 г.

First release

Что делает

Действий: 56
  1. Comment
    Use this shortcut to add reminders for when your devices are charged to user defined levels. Visit https://smallbites.me for full details on how to make this shortcut work for you.
  2. Choose from Menu
    Which device?
  3. Choose from Menu
    AirPods Pro
  4. Choose from Menu
    How much charge?
  5. Choose from Menu
    30%
  6. Date
  7. Adjust Date
  8. Add New Reminder
  9. Choose from Menu
    50%
  10. Date
  11. Adjust Date
  12. Add New Reminder
  13. Choose from Menu
    75%
  14. Date
  15. Adjust Date
  16. Add New Reminder
  17. Choose from Menu
    100%
  18. Date
  19. Adjust Date
  20. Add New Reminder
  21. Choose from Menu
    iPad Pro Fast Charge
  22. Choose from Menu
  23. Choose from Menu
    30%
  24. Date
  25. Adjust Date
  26. Add New Reminder
  27. Choose from Menu
    50%
  28. Date
  29. Adjust Date
  30. Add New Reminder
  31. Choose from Menu
    75%
  32. Date
  33. Adjust Date
  34. Add New Reminder
  35. Choose from Menu
    100%
  36. Date
  37. Adjust Date
  38. Add New Reminder
  39. Choose from Menu
    iPad Pro Normal Charge
  40. Choose from Menu
  41. Choose from Menu
    30%
  42. Date
  43. Adjust Date
  44. Add New Reminder
  45. Choose from Menu
    50%
  46. Date
  47. Adjust Date
  48. Add New Reminder
  49. Choose from Menu
    75%
  50. Date
  51. Adjust Date
  52. Add New Reminder
  53. Choose from Menu
    100%
  54. Date
  55. Adjust Date
  56. Add New Reminder

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

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

#include 'actions/calendar'
#define color orange
#define glyph battery

/*
Use this shortcut to add reminders for when your devices are charged to user defined levels.
Visit https://smallbites.me for full details on how to make this shortcut work for you. 
*/

menu "Which device?" {
item "AirPods Pro":
	menu "How much charge?" {
	item "30%":
		currentDate()
		adjustDate(, "")
		rawAction("is.workflow.actions.addnewreminder", {
			"WFAlertCustomTime": "{}",
			"WFAlertEnabled": "Alert",
			"WFCalendarItemTitle": "AirPods Pro are 30% Charged"
		})
	item "50%":
		currentDate()
		adjustDate(, "")
		rawAction("is.workflow.actions.addnewreminder", {
			"WFAlertCustomTime": "{}",
			"WFAlertEnabled": "Alert",
			"WFCalendarItemTitle": "AirPods Pro are 50% Charged"
		})
	item "75%":
		currentDate()
		adjustDate(, "")
		rawAction("is.workflow.actions.addnewreminder", {
			"WFAlertCustomTime": "{}",
			"WFAlertEnabled": "Alert",
			"WFCalendarItemTitle": "AirPods Pro are 75% Charged"
		})
	item "100%":
		currentDate()
		adjustDate(, "")
		rawAction("is.workflow.actions.addnewreminder", {
			"WFAlertCustomTime": "{}",
			"WFAlertEnabled": "Alert",
			"WFCalendarItemTitle": "AirPods Pro are 100% Charged"
		})
	}
item "iPad Pro Fast Charge":
	menu nil {
	item "30%":
		currentDate()
		adjustDate(, "")
		rawAction("is.workflow.actions.addnewreminder", {
			"WFAlertCustomTime": "{}",
			"WFAlertEnabled": "Alert",
			"WFCalendarItemTitle": "iPad Pro is 30% Charged"
		})
	item "50%":
		currentDate()
		adjustDate(, "")
		rawAction("is.workflow.actions.addnewreminder", {
			"WFAlertCustomTime": "{}",
			"WFAlertEnabled": "Alert",
			"WFCalendarItemTitle": "iPad Pro is 50% Charged"
		})
	item "75%":
		currentDate()
		adjustDate(, "")
		rawAction("is.workflow.actions.addnewreminder", {
			"WFAlertCustomTime": "{}",
			"WFAlertEnabled": "Alert",
			"WFCalendarItemTitle": "iPad Pro is 75% Charged"
		})
	item "100%":
		currentDate()
		adjustDate(, "")
		rawAction("is.workflow.actions.addnewreminder", {
			"WFAlertCustomTime": "{}",
			"WFAlertEnabled": "Alert",
			"WFCalendarItemTitle": "iPad Pro is 100% Charged"
		})
	}
item "iPad Pro Normal Charge":
	menu nil {
	item "30%":
		currentDate()
		adjustDate(, "")
		rawAction("is.workflow.actions.addnewreminder", {
			"WFAlertCustomTime": "{}",
			"WFAlertEnabled": "Alert",
			"WFCalendarItemTitle": "iPad Pro is 30% Charged"
		})
	item "50%":
		currentDate()
		adjustDate(, "")
		rawAction("is.workflow.actions.addnewreminder", {
			"WFAlertCustomTime": "{}",
			"WFAlertEnabled": "Alert",
			"WFCalendarItemTitle": "iPad Pro is 50% Charged"
		})
	item "75%":
		currentDate()
		adjustDate(, "")
		rawAction("is.workflow.actions.addnewreminder", {
			"WFAlertCustomTime": "{}",
			"WFAlertEnabled": "Alert",
			"WFCalendarItemTitle": "iPad Pro is 75% Charged"
		})
	item "100%":
		currentDate()
		adjustDate(, "")
		rawAction("is.workflow.actions.addnewreminder", {
			"WFAlertCustomTime": "{}",
			"WFAlertEnabled": "Alert",
			"WFCalendarItemTitle": "iPad Pro is 100% Charged"
		})
	}
}
Открыть в Cherri Playground Декомпилировано с помощью cherri 2.3.0 (GPL-2.0). Перед компиляцией могут понадобиться небольшие исправления.

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

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

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

Реклама

Ещё от aylwardreed

См. все

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

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