ShareShortcuts
Dupliquer « Start Timer »

Tu as créé quelque chose de nouveau à partir de ce raccourci ? Partage-le comme version dérivée : il devient un raccourci à toi, que tu gères, et les deux pages renvoient l’une vers l’autre pour que mushnoko soit crédité.

  1. 1Obtenez le raccourci et modifiez-le dans l’app Raccourcis. Donnez-lui un nom bien à lui.
  2. 2Partage-le depuis l’app Raccourcis et copie le lien iCloud.
  3. 3Reviens ici, colle le lien et décris ce qui change, par exemple : « Ajout d’une étape qui utilise Apple Intelligence pour personnaliser le texte. »
Créer mon fork
Téléchargements
23K
Enregistré
2
Actions
31
Catégorie
Utilities
Version
1.4
Langue
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

Nouveautés

Version 1.4

Changed the prompt.

Historique des versions
1.4 26 oct. 2025

Changed the prompt.

1.3 3 mars 2025

Fixed bugs related to Stopwatch.

1.2 14 déc. 2024

Minor fixes

1.1 8 déc. 2024

Addressed issues with updated Shortcuts Actions.

1.0 15 juin 2024

First release

Ce qu’il fait

31 actions
  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

Afficher en tant que code
Bêta

Chaque action de ce raccourci écrite en Cherri, un langage de programmation pour Raccourcis. Idéal pour comprendre son fonctionnement.

#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"
	})
}
Ouvrir dans Cherri Playground Décompilé avec cherri 2.3.0 (GPL-2.0). Quelques corrections peuvent être nécessaires avant la compilation.

Notes et avis

Écrire un avis
–
sur 5
★★★★★
★★★★
★★★
★★
★
0 ratings

Aucun avis pour le moment. Sois le premier à partager ton avis !

Publicité

Ça pourrait aussi te plaire

Tout afficher
Publicité