ShareShortcuts

Emergency Call

Most awaited very use and helpful Shortcuts for an iPhone user is now available!

rahulrnath
Bifurcar “Emergency Call”

¿Creaste algo nuevo a partir de este atajo? Compártelo como bifurcación: se convierte en un atajo tuyo, que tú administras, y ambas páginas se enlazan entre sí para que rahulrnath reciba el crédito.

  1. 1Obtén el atajo y modifícalo en la app Atajos. Ponle un nombre propio.
  2. 2Compártelo desde la app Atajos y copia el enlace de iCloud.
  3. 3Vuelve aquí, pega el enlace y describe qué es diferente, p. ej., “Se añadió un paso que usa Apple Intelligence para personalizar el texto”.
Descargas
53K
Guardado
2
Acciones
76
Categoría
Utilities
Versión
1.0
Idioma
EN

Most awaited very use and helpful Shortcuts for an iPhone user is now available!

Welcome to Emergency Call Version 1.0.

Scripted by Rahul R Nath.

Release on 26-Jan-2021

Everyone faces a situation to call emergency services such as Police, Medical or emergency contact to family relatives or friends in our life.

Emergency Call Shortcuts help you to list out those contacts and touch with them within a single click. Even your iPhone is locked, by set this shortcut as a widget, it will help you to contact them very fast way.

No need to save contact(s) to iPhone contacts. Emergency Call will save provided contact informations separately to personalised iCloud folder.

No need to worry about contact number exploitation. Due to a very good encapsulation of contacts, Emergency Call will not show number along with contact. So, be free always.

If you want to clear emergency contact(s), an option also provided to clear list of contacts which already saved. If you wish to add again, you can create a new contact list again.

Novedades

Versión 1.0

First release

Historial de versiones
1.0 26 de ene. de 2021

First release

Qué hace

76 acciones
  1. Comment
    About: Welcome to Emergency Call Version 1.0. Scripted by Rahul R Nath. Release on 26-Jan-2021 Everyone faces a situation to call emergency services such as Police, Medical or emergency contact to family relatives or friends in our life. Emergency C…
  2. Comment
    Handling exceptional error(s): Kindly please delete folder “Emergency Call” at file path “iCloudDrive/Shortcuts/“ in case of any exceptional error occurred.
  3. Dictionary
  4. Date
  5. Set Variable
    ReleaseDate
  6. Set Variable
    ShortcutName
  7. Set Variable
    Version
  8. Set Variable
    Author
  9. Set Variable
    FolderName
  10. Set Variable
    FileName
  11. Text
  12. Text
  13. Get File
  14. If
  15. Create Folder
  16. Text
  17. Save File
  18. Run Shortcut
    Test Emergency Call
  19. If
  20. Get File
  21. Get Details of Files
  22. If
  23. Show Result
  24. Show Result
  25. Ask for Input
    Create Emergency Contact List.
  26. Save File
  27. Run Shortcut
    Test Emergency Call
  28. If
  29. Get File
  30. Get Text from Input
  31. Split Text
  32. Repeat with Each
  33. Split Text
  34. Get Item from List
  35. Get Item from List
  36. Count
  37. If
  38. Match Text
  39. If
  40. Get File
  41. Delete Files
  42. Show Notification
    Restarting … v… ...
  43. Run Shortcut
    Test 1
  44. If
  45. Set Dictionary Value
  46. Set Variable
    Directory
  47. If
  48. Get File
  49. Delete Files
  50. Show Notification
    Restarting … v… ...
  51. Run Shortcut
    Test 1
  52. Get Dictionary Value
  53. Choose from List
  54. Get Dictionary Value
  55. Match Text
  56. If
  57. Get File
  58. Delete Files
  59. Show Notification
    Restarting … v… ...
  60. Run Shortcut
    Test 1
  61. If
  62. Call
  63. Wait to Return
  64. Choose from Menu
  65. Choose from Menu
    Contact List
  66. Run Shortcut
    Test 1
  67. Choose from Menu
    Clear List
  68. Get File
  69. Delete Files
  70. Get Name
  71. Set Variable
    File
  72. Show Notification
    Restarting … v… ...
  73. Run Shortcut
    Test 1
  74. Choose from Menu
    Release Note
  75. Show Result
  76. Run Shortcut
    Test 1

Ver como código
Beta

Todas las acciones de este atajo escritas en Cherri, un lenguaje de programación para Atajos. Ideal para aprender cómo funciona.

#include 'actions/text'
#include 'actions/documents'
#include 'actions/calendar'
#define color red
#define glyph phone

/*
About:
Welcome to Emergency Call Version 1.0.

Scripted by Rahul R Nath. 
Release on 26-Jan-2021

Everyone faces a situation to call emergency services such as Police, Medical or emergency contact to family relatives or friends in our life. 

Emergency Call Shortcuts help you to list out those contacts and touch with them within a single click. Even your iPhone is locked, by set this shortcut as a widget, it will help you to contact them very fast way. 

No need to save contact(s) to iPhone contacts. Emergency Call will save provided contact informations separately to personalised iCloud folder. 

No need to worry about contact number exploitation. Due to a very good encapsulation of contacts, Emergency Call will not show number along with contact. So, be free always.

If you want to clear emergency contact(s), an option also provided to clear list of contacts which already saved. If you wish to add again, you can create a new contact list again.

*/
/*
Handling exceptional error(s):

Kindly please delete folder “Emergency Call” at file path “iCloudDrive/Shortcuts/“ in case of any exceptional error occurred.
*/
currentDate()
@ReleaseDate
@ShortcutName = ['ShortcutName']
@Version = ['Version']
@Author = ['Author']
@FolderName = ['FolderName']
@FileName = ['FileName']
const File = getFileFromFolder(, "{@FolderName}/{@FileName}.txt", false)

if !File {
	createFolder(@FolderName)
	const Text = ""
	const SavedFile = saveFile("{@FolderName}/{@FileName}.txt", Text, true)
	runSelf(SavedFile)
} else {
	const File1 = getFile("{@FolderName}/{@FileName}.txt", false)
	const FileSize = getFileDetail(nil, "")
	if FileSize ==  {
		show()
		show()
		const ProvidedInput = prompt("Create Emergency Contact List.")
		const SavedFile1 = saveFile("{@FolderName}/{@FileName}.txt", ProvidedInput, true)
		runSelf(SavedFile1)
	} else {
		const File2 = getFile("{@FolderName}/{@FileName}.txt", false)
		const Text1 = getText(File2)
		const SplitText = splitText(Text1)
		for _ in SplitText {
			const SplitText1 = splitText(@RepeatItem, ",")
			getFirstItem(SplitText1)
			const ItemFromList = getListItems(SplitText1, 0, 0)
			const Count = count(ItemFromList, "Characters")
			if Count > 6 {
				const Matches = containsText(ItemFromList, "/^[\w\-\s\,]+$/")
				if Matches {
					const File3 = getFile("{@FolderName}/{@FileName}.txt", false)
					deleteFiles(File3)
					showNotification("Restarting {@ShortcutName} v{@Version} ...", "Unsupported input has been found!", File3)
					runSelf(File4)
				} else {
					setValue(@Directory, ItemFromList)
					@Directory
				}
			} else {
				const File5 = getFile("{@FolderName}/{@FileName}.txt", false)
				deleteFiles(File5)
				showNotification("Restarting {@ShortcutName} v{@Version} ...", "Unsupported input has been found!", File3)
				runSelf(File4)
			}
		}
		const DictionaryValue = getValue(@Directory, Ask)
		chooseFromList(DictionaryValue, "Choose a contact for emergency call.")
		const DictionaryValue1 = getValue(@Directory)
		const Matches1 = containsText(DictionaryValue1, "[a-zA-Z]")
		if Matches1 {
			const File6 = getFile("{@FolderName}/{@FileName}.txt", false)
			deleteFiles(File6)
			showNotification("Restarting {@ShortcutName} v{@Version} ...", "Unsupported input has been found!", File3)
			runSelf(File4)
		} else {
			call(DictionaryValue1)
		}
		waitToReturn()
		menu "" {
		item "Contact List":
			runSelf()
		item "Clear List":
			const File4 = getFile("{@FolderName}/{@FileName}.txt", false)
			deleteFiles(File4)
			getName(File4)
			@File
			showNotification("Restarting {@ShortcutName} v{@Version} ...", "{@File} has been cleared! ", File3)
			runSelf(File4)
		item "Release Note":
			show()
			runSelf(File4)
		}
	}
}
Abrir en Cherri Playground Descompilado con cherri 2.3.0 (GPL-2.0). Puede que necesite pequeños ajustes antes de compilarse.

Valoraciones y reseñas

Escribe una reseña
–
de 5
★★★★★
★★★★
★★★
★★
★
0 ratings

Aún no hay reseñas. ¡Sé el primero en compartir tu opinión!

Publicidad

Más de rahulrnath

Ver todo

También te puede gustar

Ver todo
Publicidad