ShareShortcuts
Dupliquer « ArriveHome »

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 weplaydr 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
12K
Enregistré
0
Actions
15
Catégorie
Routines
Version
1.0
Langue
EN

Upon arriving home, Automatically cause the phone to announce itself after 3minutes in case it is forgotten in a jacket pocket or snow suit.

Nouveautés

Version 1.0

First release

Historique des versions
1.0 12 août 2025

First release

Ce qu’il fait

15 actions
  1. Comment
    Note: This Automation Shortcut is run whenever my phone connects to a bluetooth hotspot in my house. Alternatively, it can be automated to run everytime your iPhone connects to your home WiFi. But, be aware it might trigger/run multiple times when y…
  2. Comment
    During the winter, my phone is located in my snowsuit or jacket pocket rather than my oants pocket. Due to the possibity of misplacing my phone, I set a three minute timer! So my phone will announce itself !
  3. Comment
    This Shortcut initially deletes any pending alarm named HomeModeFindPhone then creates a new alarm labeled HomeModeFindPhone
  4. Number
  5. Repeat
  6. Comment
    Delete HomeModeFindPhone alarm twice, but create only if RepeatIndex=1
  7. Get Alarms
    com.apple.mobiletimer-framework.MobileTimerIntents
  8. If
  9. Delete Alarm
    com.apple.mobiletimer
  10. If
  11. Adjust Date
  12. M T Create Alarm
    com.apple.mobiletimer-framework.MobileTimerIntents
  13. Show Alert
  14. Comment
    Shortcut execution reaches this comment only if a person presses Continue button, from above Action.
  15. Stop This Shortcut

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/calendar'
#define color green

/*
Note: This Automation Shortcut is run whenever my phone connects to a bluetooth hotspot in my house. 
Alternatively, it can be automated to run everytime your iPhone connects to your home WiFi. But, be aware it might trigger/run multiple times when you don’t expect it. 

This Shortcut can be refined to run only if a lockfile does not exist. Then a separate script must delete the lockfile whenever home WiFi goes out of range: complexities!

Nevertheless, I am able to find my phone whenever I forget to remove it from my snowsuit pocket! 🙂 
*/
// During the winter, my phone is located in my snowsuit or jacket pocket rather than my oants pocket. Due to the possibity of misplacing my phone, I set a three minute timer!  So my phone will announce itself !

// This Shortcut initially deletes any pending alarm named HomeModeFindPhone then creates a new alarm labeled HomeModeFindPhone

const minsDelay = 3

repeat _ for 2 {
	// Delete HomeModeFindPhone alarm twice, but create only if RepeatIndex=1

	const Alarms = getAlarms()
	if Alarms['label'] {
		rawAction("com.apple.mobiletimer.DeleteAlarmIntent", {
			"AppIntentDescriptor": "",
			"entities": "Alarms"
		})
	}
	if @RepeatIndex == 1 {
		adjustDate(CurrentDate, "")
		createAlarm("HomeModeFindPhone")
		confirm("Have you found this phone?")
		// Shortcut execution reaches this comment only if a person presses Continue button, from above Action. 

	}
}
stop()
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é

Plus de weplaydr

Tout afficher

Ça pourrait aussi te plaire

Tout afficher
Publicité