ShareShortcuts

Get URL Scheme From IPA

hunter9888x
„Get URL Scheme From IPA“ forken

Hast du auf Basis dieses Kurzbefehls etwas Neues erstellt? Teile ihn als Fork: Er wird zu deinem eigenen Kurzbefehl, den du selbst verwaltest, und beide Seiten verlinken aufeinander, damit hunter9888x die Anerkennung erhält.

  1. 1Lade den Kurzbefehl und ändere ihn in der Kurzbefehle-App. Gib ihm einen eigenen Namen.
  2. 2Teile ihn in der Kurzbefehle-App und kopiere den iCloud-Link.
  3. 3Komm hierher zurück, füge den Link ein und beschreibe, was sich geändert hat, z. B. „Einen Schritt hinzugefügt, der Apple Intelligence nutzt, um den Text zu personalisieren.“
Downloads
64K
Gesichert
0
Aktionen
51
Kategorie
Utilities
Version
1.0
Sprache
EN

This shortcut will get the URL Scheme from an IPA, select the file and the shortcut will copy the URL Scheme to the clipboard.

Neue Funktionen

Version 1.0

First release

Versionsverlauf
1.0 17. Dez 2019

First release

Was er macht

51 Aktionen
  1. List
  2. Set Variable
    Delete
  3. Get File
  4. Extract Archive
  5. Set Variable
    File
  6. Count
  7. If
  8. Repeat with Each
  9. Get Name
  10. If
  11. Set Name
  12. Save File
  13. Add to Variable
  14. Comment
    iCloud won't update immediately.
  15. Wait
  16. Get File
  17. Repeat with Each
  18. Get Details of Files
  19. If
  20. Get Variable
  21. Set Variable
    File
  22. Save File
  23. Add to Variable
  24. Get Name
  25. Set Variable
    Name
  26. List
  27. Set Variable
    URLs
  28. Get File
  29. Set Variable
    File
  30. If
  31. If
  32. Get File
  33. Set Variable
    File
  34. Get Dictionary from Input
  35. Get Dictionary Value
  36. Repeat with Each
  37. Get Dictionary Value
  38. Text
  39. Add to Variable
  40. Count
  41. If
  42. Show Alert
  43. Stop This Shortcut
  44. If
  45. Get Item from List
  46. Show Alert
  47. If
  48. Choose from List
  49. Copy to Clipboard
  50. Repeat with Each
  51. Delete Files

Als Code ansehen
Beta

Jede Aktion dieses Kurzbefehls als Cherri ausgeschrieben, eine Programmiersprache für Kurzbefehle. Ideal, um zu lernen, wie er funktioniert.

#include 'actions/sharing'
#include 'actions/documents'
#define color green
#define glyph globe

list()
@Delete = ShortcutInput
const File = getFileFromFolder(, "")
extractArchive(File)
@File
const Count = count(@File, "Items")

if Count > 1 {
	for _ in @File {
		const Name = getName(@RepeatItem)
		if Name == "Payload" {
			const RenamedItem = setName(@RepeatItem, "324bc7c4-21fc-49c1-96e2-b761d294de1d")
			saveFile("", RenamedItem, true)
			@Delete
			// iCloud won't update immediately.

			wait(0)
			const File1 = getFile("324bc7c4-21fc-49c1-96e2-b761d294de1d")
			for _ in File1 {
				const FileExtension = getFileDetail(nil, "File Extension")
				if FileExtension == "app" {
					// TODO: Get Variable not supported: Assign variable here to '@RepeatItem2'.
					@File = @RepeatItem2
				}
			}
		}
	}
}
saveFile("", @File, true)
@Delete
getName(@File)
@Name
list()
@URLs = nil
getFile("{@Name}.app/info.plist", false)
@File

if @File contains @File {
} else {
	getFile("{@Name}.app/Info.plist")
	@File
}
const Dictionary = getDictionary(@File)
const DictionaryValue = getValue(Dictionary, "CFBundleURLTypes")

for _ in DictionaryValue {
	@URLs += "{}://"
}
const Count1 = count(@URLs, "Items")

if Count1 contains "0" {
	alert("This app doesn't have a URL scheme.", "")
	stop()
}

if IfResult == 2 {
	getFirstItem(@URLs)
	alert("URL {} sent to the clipboard.", "")
} else {
	chooseFromList(@URLs, "Choose which URL is going to be copied to the clipboard.")
}
setClipboard(IfResult1)

for _ in @Delete {
	deleteFiles(@RepeatItem)
}
In Cherri Playground öffnen Mit cherri 2.3.0 (GPL-2.0) dekompiliert. Eventuell sind kleine Korrekturen nötig, bevor es kompiliert wird.

Bewertungen und Rezensionen

Rezension schreiben
–
von 5
★★★★★
★★★★
★★★
★★
★
0 ratings

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

Werbung

Mehr von hunter9888x

Alle anzeigen

Das gefällt dir vielleicht auch

Alle anzeigen
Werbung