Scan with your iPhone to install
Create or Unpack PGK files
What's New
Version 1.1
Added updater
What it does
27 actions-
Get My Shortcuts
-
Text
-
If
-
Dictionary
-
Run ShortcutShortcuts Updater
-
If
-
Choose from MenuYou don't have Shortcuts Updater to update this shortcut
-
Choose from MenuInstall
-
Open URLs
-
Choose from MenuLater
-
Dictionary
-
Choose from List
-
Text
-
If
-
Get File
-
Make Archive
-
Set Name
-
Save File
-
If
-
Get File
-
If
-
Text
-
Set Name
-
Extract Archive
-
Save File
-
If
-
Show AlertErorr
View as code
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
Advertisement