ShareShortcuts
Создать форк «Pomodoro with Opal»

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

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

A Shortcut to set recursive timers for working a resting within a Pomodoro Technique session. It also starts an Opal session to block distracting apps during the work timer.

You can choose the length of the Rest and Work timers and also the number of Intervals you want to have within the session.

Что нового

Версия 1.0

First release

История версий
1.0 23 янв 2026 г.

First release

Что делает

Действий: 23
  1. Ask for Input
    Work time
  2. Calculate
  3. Set Variable
    Ws
  4. Comment
    It's necessary to turn the input minutes into seconds because the script Wait only recognizes seconds
  5. Ask for Input
    Rest
  6. Calculate
  7. Set Variable
    Rs
  8. Ask for Input
    Intervals
  9. Set Variable
    I
  10. Repeat
  11. Start Timer
  12. Start Session Shortcut
    com.withopal.opal
  13. Wait
  14. Comment
    I added this wait to give time to the user to turn off the timer. Without this the "Rest" timer started immediately and a glitch caused you to turn that one off instead of the "Work" one.
  15. Calculate
  16. Set Variable
    I
  17. If
  18. Stop This Shortcut
  19. Wait
  20. Comment
    The same as before.
  21. Start Timer
  22. Wait
  23. Wait

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

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

#include 'actions/calendar'
#define color red
#define glyph apple

const W = prompt("Work time", "Number")
@Ws = W * 60
// It's necessary to turn the input minutes into seconds because the script Wait only recognizes seconds 

const R = prompt("Rest", "Number")
@Rs = R * 60
@I = prompt("Intervals", "Number")

repeat _ for 99 {
	startTimer()
	rawAction("com.withopal.opal.StartSessionShortcutIntent", {
		"AppIntentDescriptor": "",
		"duration": "W",
		"sessionMode": "",
		"timing": "duration"
	})
	wait(@Ws)
	// I added this wait to give time to the user to turn off the timer. Without this the "Rest" timer started immediately and a glitch caused you to turn that one off instead of the "Work" one.

	@I = @I - 1
	if @I <= 0 {
		stop()
	}
	wait(7)
	// The same as before. 

	startTimer()
	wait(@Rs)
	wait(7)
}
Открыть в Cherri Playground Декомпилировано с помощью cherri 2.3.0 (GPL-2.0). Перед компиляцией могут понадобиться небольшие исправления.

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

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

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

Реклама

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

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