ShareShortcuts
„Start Timer“ forken

Hast du auf Basis dieses Kurzbefehls etwas Neues erstellt? Teile ihn als Fork: Er wird zu deinem eigenen Kurzbefehl, den du selbst verwaltest, und beide Seiten verlinken aufeinander, damit mushnoko die Anerkennung erhält.

  1. 1Lade den Kurzbefehl und ändere ihn in der Kurzbefehle-App. Gib ihm einen eigenen Namen.
  2. 2Teile ihn in der Kurzbefehle-App und kopiere den iCloud-Link.
  3. 3Komm hierher zurück, füge den Link ein und beschreibe, was sich geändert hat, z. B. „Einen Schritt hinzugefügt, der Apple Intelligence nutzt, um den Text zu personalisieren.“
Downloads
23K
Gesichert
2
Aktionen
31
Kategorie
Utilities
Version
1.4
Sprache
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

Neue Funktionen

Version 1.4

Changed the prompt.

Versionsverlauf
1.4 26. Okt 2025

Changed the prompt.

1.3 3. Mär 2025

Fixed bugs related to Stopwatch.

1.2 14. Dez 2024

Minor fixes

1.1 8. Dez 2024

Addressed issues with updated Shortcuts Actions.

1.0 15. Jun 2024

First release

Was er macht

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

Als Code ansehen
Beta

Jede Aktion dieses Kurzbefehls als Cherri ausgeschrieben, eine Programmiersprache für Kurzbefehle. Ideal, um zu lernen, wie er funktioniert.

#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"
	})
}
In Cherri Playground öffnen Mit cherri 2.3.0 (GPL-2.0) dekompiliert. Eventuell sind kleine Korrekturen nötig, bevor es kompiliert wird.

Bewertungen und Rezensionen

Rezension schreiben
–
von 5
★★★★★
★★★★
★★★
★★
★
0 ratings

No reviews yet. Be the first to share what you think!

Werbung

Das gefällt dir vielleicht auch

Alle anzeigen
Werbung