ShareShortcuts
Fazer fork de “Wake Me Up In Time”

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 shahd-s 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
68K
Salvo
1
Ações
22
Categoria
Routines
Versão
1.0
Idioma
EN

This shortcut asks you where you need to be, when, and how long you take to get ready, then sets two alarms. One to wake you up to start getting ready, and another to tell you to leave your house so you can get to your destination on time.

Novidades

Versão 1.0

First release

Histórico de versões
1.0 25 de jun de 2019

First release

O que ele faz

22 ações
  1. Ask for Input
    How long do you need to get ready in minutes?
  2. Set Variable
    Gettingreadytime
  3. Ask for Input
    Where do you need to be?
  4. Set Variable
    Desination
  5. Gettraveltime
  6. Format Date
  7. Set Variable
    Dist
  8. Get Time Between Dates
  9. Set Variable
    Traveltine
  10. Ask for Input
    When do you need to be there?
  11. Format Date
  12. Set Variable
    Class
  13. Adjust Date
  14. Format Date
  15. Set Variable
    leavingTimeDrive
  16. Adjust Date
  17. Format Date
  18. Set Variable
    Getreadytime
  19. Nothing
  20. Show Alert
  21. Create Alarm
  22. Create Alarm

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.

#define color pink
#define glyph alarmClock

prompt("How long do you need to get ready in minutes?", "Number")
@Gettingreadytime = nil
prompt("Where do you need to be?")
@Desination = nil
rawAction("is.workflow.actions.gettraveltime", {
	"WFGetDirectionsCustomLocation": "",
	"WFGetDirectionsFrom": "Current Location"
})
formatDate("", "None")
@Dist = nil
rawAction("is.workflow.actions.gettimebetweendates", {
	"WFTimeUntilUnit": "Minutes"
})
@Traveltine = nil
prompt("When do you need to be there?", "Date")
formatDate("", "None")
@Class = nil
adjustDate("", "")
formatDate("", "None")
@leavingTimeDrive = nil
adjustDate("", "")
formatDate("", "None")
@Getreadytime = nil
nothing()
confirm("If you wanna be in {@Desination} at {@Class}, you need to start getting ready at {@Getreadytime} and you need to leave at {@leavingTimeDrive}. I'm setting an alarm for {@Getreadytime}. \n\nThe drive is gonna take {@Traveltine} minutes. ")
rawAction("is.workflow.actions.alarm.create", {
	"WFLabel": "Get ready",
	"WFTime": "{@Getreadytime}"
})
rawAction("is.workflow.actions.alarm.create", {
	"WFLabel": "Leave house",
	"WFTime": "{@leavingTimeDrive}"
})
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

Mais de shahd-s

Ver tudo

Você também pode gostar

Ver tudo
Publicidade