ShareShortcuts

Trouver une prière

Fonctionne avec les raccourcis "Prière" et "Récupérer une prière"

paulo83
Fork “Trouver une prière”

Built something new on top of this Shortcut? Share it as a fork: it becomes a Shortcut of your own, which you manage, and both pages link to each other so paulo83 gets credit.

  1. 1Get the Shortcut and change it in the Shortcuts app. Give it a name of its own.
  2. 2Share it from the Shortcuts app and copy the iCloud link.
  3. 3Come back here, paste the link and describe what is different, e.g. “Added a step that uses Apple Intelligence to personalise the text.”
Downloads
40K
Saved
0
Actions
41
Category
Routines
Version
2.1
Language
FR

Fonctionne avec les raccourcis "Prière" et "Récupérer une prière". Se référer à la description du raccourci "Prière" pour plus d'informations

What's New

Version 2.1

Bug fixes

Version History
2.1 Aug 15, 2022

Bug fixes

2.0 Aug 13, 2022

Auto update. Possibility to see the prayer and choose an other one if it is not the one.

1.0 Jul 19, 2022

First release

What it does

41 actions
  1. Text
  2. Set Variable
    version
  3. Text
  4. Set Variable
    ID Raccourci
  5. Get Contents of URL
    https://updatekit.mikebeas.com/v1
  6. Get Dictionary Value
  7. If
  8. Show Alert
    Mise à jour vers la version … requise
  9. Open URLs
  10. Stop This Shortcut
  11. If
  12. Contacts
  13. Set Variable
    Contact
  14. Get Contents of Folder
  15. Add to Variable
  16. Choose from Menu
    Choisir une prière
  17. Choose from Menu
    aléatoire
  18. Get Item from List
  19. Set Variable
    Prière sélectionnée
  20. Choose from Menu
    spécifique
  21. Select File
  22. Set Variable
    Prière sélectionnée
  23. Show Result
  24. Choose from Menu
    Voulez-vous sélectionner cette prière ou en choisir une autre ?
  25. Choose from Menu
    Choisir celle-là
  26. Get Details of Files
  27. Get Details of Files
  28. Text
  29. Copy to Clipboard
  30. Choose from Menu
    Partager ?
  31. Choose from Menu
    Partager avec Contact
  32. Send Message
  33. Choose from Menu
    Lire la prière
  34. Run Shortcut
    Récupérer une prière
  35. Stop This Shortcut
  36. Choose from Menu
    Partager avec Contact et écrire un message
  37. Send Message
  38. Send Message
  39. Choose from Menu
    En sélectionner une autre
  40. Run Shortcut
    Trouver une prière
  41. Run Shortcut
    Récupérer une prière

View as code
Beta

Every action of this Shortcut written out as Cherri, a programming language for Shortcuts. Great for learning how it works.

#include 'actions/web'
#define color purple

@version = "2.1"
@IDRaccourci = "2041"
const Response = jsonRequest("https://updatekit.mikebeas.com/v1", "POST", {
	"Trouver une prière": {
		"": "",
		"id": "{@IDRaccourci}",
		"version": "{@version}"
	}
})
const ValeurDuDictionnaire = getValue(Response, "update")

if ValeurDuDictionnaire ==  {
	alert(Response['payload.notes'], "Mise à jour vers la version {Response['payload.version']} requise")
	openURL(Response['payload.download'])
	stop()
} else {
}
rawAction("is.workflow.actions.contacts", {})
@Contact
getFolderContents(, false)
@Prires

menu "Choisir une prière" {
item "aléatoire":
	getRandomItem(@Prires)
	@PrireSlectionne
item "spécifique":
	selectFile()
	@PrireSlectionne
}
show()

menu "Voulez-vous sélectionner cette prière ou en choisir une autre ? " {
item "Choisir celle-là":
	getFileDetail(nil, "Name")
	getFileDetail(nil, "File Extension")
	const Texte = "{}.{}"
	setClipboard(Texte)
	menu "Partager ?" {
	item "Partager avec {@Contact}":
		sendMessage(@Contact, Texte, false)
	item :
		run()
		stop()
	item "Partager avec {@Contact} et écrire un message":
		sendMessage(@Contact, Texte, false)
		sendMessage(@Contact, "")
	}
item "En sélectionner une autre":
	runSelf()
}
run()
Open in Cherri Playground Decompiled with cherri 2.3.0 (GPL-2.0). May need small fixes before it compiles.

Ratings & Reviews

Write a Review
–
out of 5
★★★★★
★★★★
★★★
★★
★
0 ratings

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

Advertisement

More by paulo83

See All

You Might Also Like

See All
Advertisement