ShareShortcuts

PGK Tool

Create or Unpack PGK files

pxmatija
Bifurcar “PGK Tool”

¿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 pxmatija 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
52K
Guardado
1
Acciones
27
Categoría
Utilities
Versión
1.1
Idioma
EN

Create or Unpack PGK files

Novedades

Versión 1.1

Added updater

Historial de versiones
1.1 22 de feb. de 2021

Added updater

1.0 22 de feb. de 2021

First release

Qué hace

27 acciones
  1. Get My Shortcuts
  2. Text
  3. If
  4. Dictionary
  5. Run Shortcut
    Shortcuts Updater
  6. If
  7. Choose from Menu
    You don't have Shortcuts Updater to update this shortcut
  8. Choose from Menu
    Install
  9. Open URLs
  10. Choose from Menu
    Later
  11. Dictionary
  12. Choose from List
  13. Text
  14. If
  15. Get File
  16. Make Archive
  17. Set Name
  18. Save File
  19. If
  20. Get File
  21. If
  22. Text
  23. Set Name
  24. Extract Archive
  25. Save File
  26. If
  27. Show Alert
    Erorr

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/web'
#include 'actions/shortcuts'
#define color yellow
#define glyph hammer

getShortcuts()
const Tekst = "{}"

if Tekst contains "Shortcuts Updater" {
	const Sownik = {
		"name": "PGK Tool",
		"shareid": "1252",
		"version": "1.1"
	}
	run("Shortcuts Updater", Sownik)
} else {
	menu "You don't have Shortcuts Updater to update this shortcut" {
	item "Install":
		openURL("https://shareshortcuts.com/shortcuts/107-shortcuts-updater.html")
	item "Later":
	}
}
const Sownik1 = {
	"Create PGK file": "Creates PGK file",
	"Unpack PGK file": "Unpacks PGK file"
}
chooseFromList(Sownik1, "Select")
const Tekst1 = "{}"

if Tekst1 == "Creates PGK file" {
	const Plik = getFile("")
	const Archiwum = makeArchive(Plik)
	const RzeczZeZmienionNazw = setName(Archiwum, "PGK.pgk", true)
	saveFilePrompt(RzeczZeZmienionNazw)
} else {
	const Plik1 = getFile("")
	if Plik1['File Extension'] == "pgk" {
		const RzeczZeZmienionNazw1 = setName(Plik1, true)
		const Pliki = extractArchive(RzeczZeZmienionNazw1)
		saveFilePrompt(Pliki)
	} else {
		alert("Bad PGK file", "Erorr")
	}
}
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