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

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

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

Timer and Stopwatch Launcher

You will be asked for text input in the following syntax ('#' is set by default to be deleted as needed):


Input digits and anything else as separators:

# <minute> [second]

([second] is optional)

<hour> [minute]

([minute] is optional)


Input any length of text excluding digits:

# <text length = minute>

<text length = hour>


Leave it blank for stopwatch. ('#' is optional)


Examples:

#hello 5-minute timer

got it 6-hour timer

#3 3-minute timer

2 15 2-hour-15-minute timer

# 6 + 7 = 13 6-minute-7-second timer

# starts the stopwatch

Что нового

Версия 1.4

Changed the prompt.

История версий
1.4 26 окт 2025 г.

Changed the prompt.

1.3 3 мар 2025 г.

Fixed bugs related to Stopwatch.

1.2 14 дек 2024 г.

Minor fixes

1.1 8 дек 2024 г.

Addressed issues with updated Shortcuts Actions.

1.0 15 июн 2024 г.

First release

Что делает

Действий: 31
  1. Text
  2. Set Variable
    NullText
  3. Text
  4. Ask for Input
    …
  5. Match Text
  6. Get Group from Matched Text
  7. If
  8. Text
  9. If
  10. Text
  11. Set Variable
    MinHourFactor
  12. Get Group from Matched Text
  13. Set Variable
    Ones
  14. If
  15. Get Group from Matched Text
  16. Count
  17. If
  18. Calculate
  19. Start Timer
  20. Open Tab
    com.apple.mobiletimer
  21. If
  22. Start Stopwatch
    com.apple.mobiletimer
  23. Open Tab
    com.apple.mobiletimer
  24. If
  25. Get Group from Matched Text
  26. If
  27. Text
  28. Set Variable
    Sixtieths
  29. Calculate Expression
  30. Start Timer
  31. Open Tab
    com.apple.mobiletimer

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

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

#include 'actions/text'
#define color teal
#define glyph timer

@NullText = "nil"
prompt(, "Text", false)
const Matches = containsText(, "^(#?)([^0-9]*)([0-9]*)[^0-9]*([0-9]*)")
const Text = getMatchGroup(Matches, 1)

if Text == "#" {
} else {
}
@MinHourFactor = "60"
getMatchGroup(Matches, 3)
@Ones

if @Ones == @NullText || !@Ones {
	const Text1 = getMatchGroup(Matches, 2)
	const Count = count(Text1, "Characters")
	if Count > 0 {
		startTimer()
		rawAction("com.apple.mobiletimer.OpenTab", {
			"AppIntentDescriptor": "",
			"tab": "timer"
		})
	} else {
		rawAction("com.apple.mobiletimer.StartStopwatchIntent", {
			"AppIntentDescriptor": ""
		})
		rawAction("com.apple.mobiletimer.OpenTab", {
			"AppIntentDescriptor": "",
			"tab": "stopwatch"
		})
	}
} else {
	const Text2 = getMatchGroup(Matches, 4)
	if Text2 == @NullText {
	}
	@Sixtieths = "0"
	startTimer()
	rawAction("com.apple.mobiletimer.OpenTab", {
		"AppIntentDescriptor": "",
		"tab": "timer"
	})
}
Открыть в Cherri Playground Декомпилировано с помощью cherri 2.3.0 (GPL-2.0). Перед компиляцией могут понадобиться небольшие исправления.

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

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

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

Реклама

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

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