Emergency Call
Most awaited very use and helpful Shortcuts for an iPhone user is now available!
rahulrnathMost 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
First release
Qué hace
76 acciones-
CommentAbout: 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…
-
CommentHandling exceptional error(s): Kindly please delete folder “Emergency Call” at file path “iCloudDrive/Shortcuts/“ in case of any exceptional error occurred.
-
Dictionary
-
Date
-
Set VariableReleaseDate
-
Set VariableShortcutName
-
Set VariableVersion
-
Set VariableAuthor
-
Set VariableFolderName
-
Set VariableFileName
-
Text
-
Text
-
Get File
-
If
-
Create Folder
-
Text
-
Save File
-
Run ShortcutTest Emergency Call
-
If
-
Get File
-
Get Details of Files
-
If
-
Show Result
-
Show Result
-
Ask for InputCreate Emergency Contact List.
-
Save File
-
Run ShortcutTest Emergency Call
-
If
-
Get File
-
Get Text from Input
-
Split Text
-
Repeat with Each
-
Split Text
-
Get Item from List
-
Get Item from List
-
Count
-
If
-
Match Text
-
If
-
Get File
-
Delete Files
-
Show NotificationRestarting … v… ...
-
Run ShortcutTest 1
-
If
-
Set Dictionary Value
-
Set VariableDirectory
-
If
-
Get File
-
Delete Files
-
Show NotificationRestarting … v… ...
-
Run ShortcutTest 1
-
Get Dictionary Value
-
Choose from List
-
Get Dictionary Value
-
Match Text
-
If
-
Get File
-
Delete Files
-
Show NotificationRestarting … v… ...
-
Run ShortcutTest 1
-
If
-
Call
-
Wait to Return
-
Choose from Menu
-
Choose from MenuContact List
-
Run ShortcutTest 1
-
Choose from MenuClear List
-
Get File
-
Delete Files
-
Get Name
-
Set VariableFile
-
Show NotificationRestarting … v… ...
-
Run ShortcutTest 1
-
Choose from MenuRelease Note
-
Show Result
-
Run ShortcutTest 1
Ver como código
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)
}
}
}
Valoraciones y reseñas
Escribe una reseñaAún no hay reseñas. ¡Sé el primero en compartir tu opinión!