22 de nov. de 2018
danielbahl
Great idea, nice work @entee!
This has now been replaced by Home Launcher which does the same, and more, and looks a bit smarter too.
Creates a home screen launcher for calls, texts, emails, and/or shortcuts. You can choose to have one, two, three or all of the types of launchers on the one web launcher.
Now works offline
This is a replacement for Home Screen Launcher, and Home Screen Multiple Contact Launcher.
First release
Todas las acciones de este atajo escritas en Cherri, un lenguaje de programación para Atajos. Ideal para aprender cómo funciona.
#include 'actions/web'
#include 'actions/shortcuts'
#define color taupe
#define glyph gear
/*
Shortcut by N Turpin
Twitter: entee
Reddit: enteeMcr
*/
prompt("What do you want to call the launcher?")
getShortcuts()
filterFiles(nil, "Name", "A to Z")
chooseFromList(nil, "Choose Shortcuts to add to this folder", true)
for _ in nil {
getImages(nil)
resizeImage(nil, 50, 50)
const ConvertedImage = convertImage(nil, "", 0.52071005)
// TODO: Get Variable not supported: Assign variable here to 'ConvertedImage'.
base64Encode(nil)
@Buttons += "<div class=\\"card border-light\\" style=\\"width:450px\\">\n\n <div class=\\"card-body\\">\n<a href=\\"shortcuts://x-callback-url/run-shortcut?name={@RepeatItem['Name']}\\"> <img src=\\"data:image/png;base64,{}\\" alt=\\"{@RepeatItem['Name']}\\" style=\\"font-size: 100px;width:50px;height:50px;border:0;\\"> {@RepeatItem['Name']}</a>\n\n</div>\n</div>\n\n"
}
alert("You will need to finish the job\nA web page will open in Safari with a preview of the launcher.\nGo to the share sheet and select Add to Home Screen in order to complete the launcher.", "Alert")
base64Encode(nil)
url("data:text/html;base64,{}")
openURL("")
Great idea, nice work @entee!