ShareShortcuts

PGK Tool

Create or Unpack PGK files

pxmatija
Fork “PGK Tool”

Built something new on top of this Shortcut? Share it as a fork: it becomes a Shortcut of your own, which you manage, and both pages link to each other so pxmatija gets credit.

  1. 1Get the Shortcut and change it in the Shortcuts app. Give it a name of its own.
  2. 2Share it from the Shortcuts app and copy the iCloud link.
  3. 3Come back here, paste the link and describe what is different, e.g. “Added a step that uses Apple Intelligence to personalise the text.”
Downloads
52K
Saved
1
Actions
27
Category
Utilities
Version
1.1
Language
EN

Create or Unpack PGK files

What's New

Version 1.1

Added updater

Version History
1.1 Feb 22, 2021

Added updater

1.0 Feb 22, 2021

First release

What it does

27 actions
  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

View as code
Beta

Every action of this Shortcut written out as Cherri, a programming language for Shortcuts. Great for learning how it works.

#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")
	}
}
Open in Cherri Playground Decompiled with cherri 2.3.0 (GPL-2.0). May need small fixes before it compiles.

Ratings & Reviews

Write a Review
–
out of 5
★★★★★
★★★★
★★★
★★
★
0 ratings

No reviews yet. Be the first to share what you think!

Advertisement

You Might Also Like

See All
Advertisement