ShareShortcuts

Homework Notifications +

Add your homeworks in, it will save plus notificates you

aster
Создать форк «Homework Notifications +»

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

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

Просмотр

Add your homeworks in, it will save plus notificates you

Что нового

Версия 1.0

First release

История версий
1.0 4 июл 2024 г.

First release

Что делает

Действий: 126
  1. Comment
    [NG-HWNTFCTNS+-5-TH30MY24-*]
  2. Find Reminders
  3. Count
  4. Repeat with Each
  5. Split Text
  6. Get Item from List
  7. Get Item from List
  8. If
  9. Set Variable
    English
  10. If
  11. If
  12. Set Variable
    Mathematics
  13. If
  14. If
  15. Set Variable
    Science
  16. If
  17. If
  18. Set Variable
    Geography
  19. If
  20. If
  21. Set Variable
    History
  22. If
  23. If
  24. Set Variable
    English Literature
  25. If
  26. If
  27. Set Variable
    Spanish
  28. If
  29. If
  30. Set Variable
    ESL
  31. If
  32. If
  33. Set Variable
    ICT
  34. If
  35. If
  36. Set Variable
    Personal
  37. If
  38. Choose from Menu
    New Homework or Look for pending work […]
  39. Choose from Menu
    English [English]
  40. Text
  41. Choose from Menu
    Mathematics [Mathematics]
  42. Text
  43. Choose from Menu
    Science [Science]
  44. Text
  45. Choose from Menu
    Geography [Geography]
  46. Text
  47. Choose from Menu
    History [History]
  48. Text
  49. Choose from Menu
    English Literature [English Literature]
  50. Text
  51. Choose from Menu
    Spanish [Spanish]
  52. Text
  53. Choose from Menu
    ESL [ESL]
  54. Text
  55. Choose from Menu
    ICT [ICT]
  56. Text
  57. Choose from Menu
    Personal [Personal]
  58. Text
  59. Choose from Menu
    -All pending- [EnglishMathematicsScienceGeographyHistoryEnglish LiteratureSpanishESLICTPersonal] [Count]
  60. Choose from List
  61. If
  62. Show Alert
  63. Stop This Shortcut
  64. If
  65. If
  66. Stop This Shortcut
  67. If
  68. Comment
    repeat here
  69. Get Details of Reminders
  70. Show Result
  71. Count
  72. If
  73. Text
  74. If
  75. Text
  76. Choose from Menu
    Custom
  77. Choose from Menu
    Edit note Available or not
  78. If
  79. Show Alert
    !!!
  80. If
  81. Ask for Input
    Edit note
  82. Setters Reminders
  83. Choose from Menu
    Complete
  84. Repeat with Each
  85. Remove Reminders
  86. Show Notification
    Congratulations!
  87. Choose from Menu
    Nothing
  88. Stop This Shortcut
  89. Text
  90. Choose from Menu
    Work Type
  91. Choose from Menu
    Text Book Work
  92. Ask for Input
    The Page
  93. Ask for Input
    Question number
  94. Text
  95. Choose from Menu
    Work Book Work
  96. Ask for Input
    The Page
  97. Ask for Input
    Question Number
  98. Text
  99. Choose from Menu
    Document Work
  100. Ask for Input
    Online or Manual?
  101. Text
  102. Choose from Menu
    Writing
  103. Ask for Input
    To write about
  104. Text
  105. Choose from Menu
    Reading
  106. Ask for Input
    To read about
  107. Text
  108. Choose from Menu
    Interviewing
  109. Text
  110. Ask for Input
    Interviewing details
  111. Choose from Menu
    Preparing Presentation
  112. Text
  113. Ask for Input
    Presentation details
  114. Choose from Menu
    -Custom Work-
  115. Ask for Input
    Custom detail
  116. Ask for Input
    Your own comment and strategy
  117. If
  118. Text
  119. If
  120. Text
  121. Ask for Input
    due date
  122. List
  123. Choose from List
  124. Text
  125. Text
  126. Add New Reminder

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

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

#define color orange
#define glyph iPhoneWave

// [NG-HWNTFCTNS+-5-TH30MY24-*]

const PendingWork = rawAction("is.workflow.actions.filter.reminders")
count(PendingWork)

for _ in PendingWork {
	const SplitText = splitText(@RepeatItem, " | ")
	const DetectSubject = getListItems(SplitText, 0, 0)
	if DetectSubject == "English" {
		@English = getFirstItem(SplitText)
	} else {
		if DetectSubject contains "Mathematics" {
			@Mathematics = Priority
		} else {
			if DetectSubject contains "Science" {
				@Science = Priority
			} else {
				if DetectSubject contains "Geography" {
					@Geography = Priority
				} else {
					if DetectSubject contains "History" {
						@History = Priority
					} else {
						if DetectSubject contains "English Literature" {
							@EnglishLiterature = Priority
						} else {
							if DetectSubject contains "Spanish" {
								@Spanish = Priority
							} else {
								if DetectSubject contains "ESL" {
									@ESL = Priority
								} else {
									if DetectSubject contains "ICT" {
										@ICT = Priority
									} else {
										if DetectSubject contains "Online Tutor" {
											@Personal = Priority
										} else {
										}
									}
								}
							}
						}
					}
				}
			}
		}
	}
}

menu "New Homework or Look for pending work [{}]" {
item "English [{@English}]":
item "Mathematics [{@Mathematics}]":
item "Science [{@Science}]":
item "Geography [{@Geography}]":
item "History [{@History}]":
item "English Literature [{@EnglishLiterature}]":
item "Spanish [{@Spanish}]":
item "ESL [{@ESL}]":
item "ICT [{@ICT}]":
item "Personal [{@Personal}]":
item "-All pending- [{@English}{@Mathematics}{@Science}{@Geography}{@History}{@EnglishLiterature}{@Spanish}{@ESL}{@ICT}{@Personal}] [{}]":
	const PendingWorkChosenItem = chooseFromList(PendingWork, true, false)
	if !PendingWork {
		confirm("Congrats! No Pending Homeworks!")
		stop()
	} else {
		if !PendingWorkChosenItem {
			stop()
		} else {
		}
	}
	// repeat here

	const PendingWorkNote = rawAction("is.workflow.actions.properties.reminders")
	show(PendingWorkNote)
	const PendingWorkNumberOrChosen = count(PendingWorkChosenItem)
	if PendingWorkNumberOrChosen > 1 {
	} else {
	}
	menu "Custom" {
	item "Edit note {AvailableOrNot}":
		if PendingWorkNumberOrChosen > 1 {
			alert("To edit must be 1 Chosen item", "!!!")
		} else {
			const PendingWorkEditInput = prompt("Edit note")
			rawAction("is.workflow.actions.setters.reminders", {
				"Mode": "Set",
				"WFContentItemPropertyName": "Notes",
				"WFInput": "PendingWorkChosenItem",
				"WFReminderContentItemNotes": "{PendingWorkEditInput}"
			})
		}
	item :
		for _ in PendingWorkChosenItem {
			removeReminders(@RepeatItem)
		}
		showNotification("Congratulations!")
	item "Complete":
	}
	stop()
}
const Subject = "{NewHomeworkSubject}"

menu "Work Type" {
item "Text Book Work":
	const TBPage = prompt("The Page", "Number", false)
	const TBQuestion = prompt("Question number", "Text", false)
item "Work Book Work":
	const WBPage = prompt("The Page", "Number", false)
	const WBQuestion = prompt("Question Number", "Text", false)
item "Document Work":
	const DMWhere = prompt("Online or Manual?", false)
item "Writing":
	prompt("To write about", "Text", true)
item "Reading":
	prompt("To read about")
item "Interviewing":
	prompt("Interviewing details", "Text", true)
item "Preparing Presentation":
	prompt("Presentation details", "Text", true)
item "-Custom Work-":
	prompt("Custom detail", "Text", true)
}
const CommentAndStrategyBase = prompt("Your own comment and strategy")

if !CommentAndStrategyBase {
} else {
}
const DueDate = prompt("due date", "Date and Time")
const List = list("🟥", "🟧", "🟨", "🟦", "⬜️")
const Priority1 = chooseFromList(List, "The priority", false)
const title = "{Subject} | {Priority1}"
const notes = "-DUE-\n{DueDate}\n\n-To Do-\n{WorkType}{CommentsStrategy}"
rawAction("is.workflow.actions.addnewreminder", {
	"WFAlertCustomTime": "{Ask}",
	"WFAlertEnabled": "Alert",
	"WFAlertLocation": "",
	"WFCalendarDescriptor": "",
	"WFCalendarItemCalendar": "memo data",
	"WFCalendarItemNotes": "{notes}",
	"WFCalendarItemTitle": "{title}",
	"WFFlag": true,
	"WFPriority": "High",
	"WFTags": "Homework N3"
})
Открыть в Cherri Playground Декомпилировано с помощью cherri 2.3.0 (GPL-2.0). Перед компиляцией могут понадобиться небольшие исправления.

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

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

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

Реклама

Ещё от aster

См. все

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

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