ShareShortcuts

MarkoScript

A programming language made using Shortcuts

marko2155
Bifurcar “MarkoScript”

¿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 marko2155 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
22K
Guardado
0
Acciones
35
Categoría
API
Versión
1.0
Idioma
EN

A programming language made using Shortcuts

Novedades

Versión 1.0

First release

Historial de versiones
1.0 17 de jul. de 2024

First release

Qué hace

35 acciones
  1. Dictionary
  2. Select File
  3. Split Text
  4. Repeat with Each
  5. If
  6. Split Text
  7. Get Item from List
  8. Combine Text
  9. Show Result
  10. If
  11. If
  12. Split Text
  13. Get Item from List
  14. Set Variable
    bufferVariable
  15. Get Item from List
  16. Set Dictionary Value
  17. Set Variable
    bufferVariable
  18. If
  19. If
  20. Split Text
  21. Get Item from List
  22. Get Dictionary Value
  23. Combine Text
  24. Show Result
  25. If
  26. If
  27. Split Text
  28. Get Item from List
  29. Set Variable
    bufferVariable
  30. Get Item from List
  31. Combine Text
  32. Ask for Input
    …
  33. Set Dictionary Value
  34. Set Variable
    bufferVariable
  35. If

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/documents'
#define color darkblue

const File = selectFile(false)
const SplitText = splitText(File, "
")

for _ in SplitText {
	if @RepeatItem beginsWith "echo" {
		const SplitText1 = splitText(@RepeatItem, " ")
		const ItemFromList = getListItems(SplitText1, 2, 0)
		joinText(ItemFromList, " ")
		show()
	} else {
		if @RepeatItem beginsWith "svar" {
			const SplitText2 = splitText(@RepeatItem, " ")
			getListItem(SplitText2, 2)
			@bufferVariable
			getListItem(SplitText2, 3)
			const Dictionary = setValue(Dictionary, @bufferVariable)
			@bufferVariable = nil
		} else {
			if @RepeatItem beginsWith "evar" {
				const SplitText3 = splitText(@RepeatItem, " ")
				getListItem(SplitText3, 2)
				const DictionaryValue = getValue(Dictionary)
				joinText(DictionaryValue, " ")
				show()
			} else {
				if @RepeatItem beginsWith "sinput" {
					const SplitText4 = splitText(@RepeatItem, " ")
					getListItem(SplitText4, 2)
					@bufferVariable
					const ItemFromList1 = getListItems(SplitText4, 3, 0)
					joinText(ItemFromList1, " ")
					prompt()
					const Dictionary1 = setValue(Dictionary1, @bufferVariable)
					@bufferVariable = nil
				} else {
				}
			}
		}
	}
}
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

También te puede gustar

Ver todo
Publicidad