ShareShortcuts

Emergency Call

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

rahulrnath
Создать форк «Emergency Call»

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

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

Что нового

Версия 1.0

First release

История версий
1.0 26 янв 2021 г.

First release

Что делает

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

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

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

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

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

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

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

Реклама

Ещё от rahulrnath

См. все

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

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