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

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

  1. 1Получите команду и измените её в приложении «Быстрые команды». Дайте ей собственное название.
  2. 2Поделись ею из приложения «Быстрые команды» и скопируй ссылку iCloud.
  3. 3Вернись сюда, вставь ссылку и опиши, что изменилось, например: «Добавлен шаг, который использует Apple Intelligence для персонализации текста».
Загрузки
12K
Сохранено
0
Действия
15
Категория
Routines
Версия
1.0
Язык
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.

Что нового

Версия 1.0

First release

История версий
1.0 12 авг 2025 г.

First release

Что делает

Действий: 15
  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

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

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

#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()
Открыть в Cherri Playground Декомпилировано с помощью cherri 2.3.0 (GPL-2.0). Перед компиляцией могут понадобиться небольшие исправления.

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

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

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

Реклама

Ещё от weplaydr

См. все

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

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