ShareShortcuts
Fazer fork de “Start Timer”

Criou algo novo a partir deste atalho? Compartilhe como uma derivação: ela se torna um atalho seu, que você gerencia, e as duas páginas têm links entre si para que mushnoko receba o crédito.

  1. 1Obtenha o atalho e altere-o no app Atalhos. Dê a ele um nome próprio.
  2. 2Compartilhe pelo app Atalhos e copie o link do iCloud.
  3. 3Volte aqui, cole o link e descreva o que mudou, por exemplo: “Adicionei uma etapa que usa a Apple Intelligence para personalizar o texto.”
Downloads
23K
Salvo
2
Ações
31
Categoria
Utilities
Versão
1.4
Idioma
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

Novidades

Versão 1.4

Changed the prompt.

Histórico de versões
1.4 26 de out de 2025

Changed the prompt.

1.3 3 de mar de 2025

Fixed bugs related to Stopwatch.

1.2 14 de dez de 2024

Minor fixes

1.1 8 de dez de 2024

Addressed issues with updated Shortcuts Actions.

1.0 15 de jun de 2024

First release

O que ele faz

31 ações
  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

Ver como código
Beta

Todas as ações deste atalho escritas em Cherri, uma linguagem de programação para o app Atalhos. Ótimo para aprender como ele funciona.

#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"
	})
}
Abrir no Cherri Playground Descompilado com cherri 2.3.0 (GPL-2.0). Pode precisar de pequenos ajustes antes de compilar.

Avaliações e comentários

Escrever uma avaliação
–
de 5
★★★★★
★★★★
★★★
★★
★
0 ratings

Ainda não há avaliações. Seja o primeiro a compartilhar o que você pensa!

Publicidade

Você também pode gostar

Ver tudo
Publicidade