ShareShortcuts

Base64 Encode/Decode Machine

coltensus
Fazer fork de “Base64 Encode/Decode Machine”

Criou algo novo a partir deste atalho? Compartilhe como uma derivação: ela se torna um atalho seu, que você gerencia, e as duas páginas têm links entre si para que coltensus receba o crédito.

  1. 1Obtenha o atalho e altere-o no app Atalhos. Dê a ele um nome próprio.
  2. 2Compartilhe pelo app Atalhos e copie o link do iCloud.
  3. 3Volte aqui, cole o link e descreva o que mudou, por exemplo: “Adicionei uma etapa que usa a Apple Intelligence para personalizar o texto.”
Downloads
40K
Salvo
0
Ações
62
Categoria
API
Versão
1.0
Idioma
EN

Yahjz

Novidades

Versão 1.0

First release

Histórico de versões
1.0 25 de jul de 2022

First release

O que ele faz

62 ações
  1. Text
  2. List
  3. Choose from List
  4. Set Variable
    encodeOrDecode
  5. If
  6. Text
  7. List
  8. Choose from List
  9. Set Variable
    whatEncode
  10. If
  11. Select File
  12. Base64 Encode
  13. Set Variable
    base64Encoded
  14. If
  15. Record Audio
  16. Base64 Encode
  17. Set Variable
    base64Encoded
  18. If
  19. Ask for Input
    Enter text
  20. Base64 Encode
  21. Set Variable
    base64Encoded
  22. Text
  23. List
  24. Choose from List
  25. Set Variable
    howSave
  26. If
  27. Save File
  28. Show Notification
    Your base64 file has been saved!
  29. If
  30. Copy to Clipboard
  31. Show Notification
    Copied to clipboard!
  32. If
  33. Copy to Clipboard
  34. Save File
  35. Show Notification
    File has been saved and have been copied to your clipboard!
  36. If
  37. Text
  38. List
  39. Choose from List
  40. Set Variable
    whatDecode
  41. If
  42. Select File
  43. Set Variable
    file
  44. Base64 Encode
  45. Set Variable
    base64Decoded
  46. If
  47. Get Clipboard
  48. Base64 Encode
  49. Set Variable
    base64Decoded
  50. If
  51. Select File
  52. Set Variable
    audio
  53. Base64 Encode
  54. Set Variable
    base64Decoded
  55. Text
  56. List
  57. Choose from List
  58. If
  59. Get Variable
  60. Play Sound
  61. Save File
  62. Show Notification
    Decided file has been saved!

Ver como código
Beta

Todas as ações deste atalho escritas em Cherri, uma linguagem de programação para o app Atalhos. Ótimo para aprender como ele funciona.

#include 'actions/sharing'
#include 'actions/media'
#include 'actions/documents'
#define color teal
#define glyph networkStorage

const Text0 = "Welcome to the Base64 Encode/Decode Machine! \n--------------------------------\nWhat would you like to do?\n----------------\nCreated by u/VanishingTacos"
const List = list("Encode", "Decode")
chooseFromList(List, Text0, false, false)
@encodeOrDecode

if @encodeOrDecode contains "Encode" {
	const Text1 = "What would you like to encode?"
	const List1 = list("File", "Recorded Audio", "Input Text")
	chooseFromList(List1, Text1)
	@whatEncode
	if @whatEncode contains "File" {
		const File = selectFile()
		base64Encode(File)
		@base64Encoded
	}
	if @whatEncode contains "Recorded Audio" {
		const RecordedAudio = recordAudio()
		base64Encode(RecordedAudio)
		@base64Encoded
	}
	if @whatEncode contains "Input Text" {
		const ProvidedInput = prompt("Enter text")
		base64Encode(ProvidedInput)
		@base64Encoded
	}
	const Text5 = "How would you like to save?"
	const List2 = list("Save File", "Copy to Clipbored ", "Both")
	chooseFromList(List2, Text5)
	@howSave
	if @howSave contains "Save File" {
		const SavedFile = saveFilePrompt(@base64Encoded)
		showNotification("Your base64 file has been saved!", "Base64 Encode/Decode Machine", SavedFile)
	}
	if @howSave contains "Copy to Clipbored " {
		setClipboard(@base64Encoded)
		showNotification("Copied to clipboard!", "Base64 Encode/Decode Machine")
		if @howSave contains "Both" {
			setClipboard(@base64Encoded)
			const SavedFile1 = saveFilePrompt(@base64Encoded)
			showNotification("File has been saved and have been copied to your clipboard!", "Base64 Encode/Decode Machine", SavedFile1)
		}
	}
} else {
	const Text3 = "What would you like to decode?"
	const List3 = list("File", "From Clipbored ", "Audio")
	chooseFromList(List3, Text3)
	@whatDecode
	if @whatDecode contains "File" {
		selectFile()
		@file
		base64Encode(@file)
		@base64Decoded
	}
	if @whatEncode contains "From Clipbored " {
		const Clipboard = getClipboard()
		base64Encode(Clipboard)
		@base64Decoded
	}
	if @whatDecode contains "Audio" {
		selectFile()
		@audio
		base64Encode(@audio)
		@base64Decoded
		const List4 = list("Yes ", "No")
		const ChosenItem = chooseFromList(List4)
		if ChosenItem contains "Yes" {
			// TODO: Get Variable not supported: Assign variable here to '@base64Decoded'.
			playSound(@base64Decoded)
		}
	}
	const SavedFile2 = saveFilePrompt(@base64Decoded)
	showNotification("Decided file has been saved!", "Base64 Encode/Decode Machine", SavedFile2)
}
Abrir no Cherri Playground Descompilado com cherri 2.3.0 (GPL-2.0). Pode precisar de pequenos ajustes antes de compilar.

Avaliações e comentários

Escrever uma avaliação
–
de 5
★★★★★
★★★★
★★★
★★
★
0 ratings

Ainda não há avaliações. Seja o primeiro a compartilhar o que você pensa!

Publicidade

Mais de coltensus

Ver tudo

Você também pode gostar

Ver tudo
Publicidade