ShareShortcuts

OS Library 1.4 (BETA)

coltensus
Dupliquer « OS Library 1.4 (BETA) »

Tu as créé quelque chose de nouveau à partir de ce raccourci ? Partage-le comme version dérivée : il devient un raccourci à toi, que tu gères, et les deux pages renvoient l’une vers l’autre pour que coltensus soit crédité.

  1. 1Obtenez le raccourci et modifiez-le dans l’app Raccourcis. Donnez-lui un nom bien à lui.
  2. 2Partage-le depuis l’app Raccourcis et copie le lien iCloud.
  3. 3Reviens ici, colle le lien et décris ce qui change, par exemple : « Ajout d’une étape qui utilise Apple Intelligence pour personnaliser le texte. »
Créer mon fork
Téléchargements
5K
Enregistré
0
Actions
46
Catégorie
Utilities
Version
1.4
Langue
EN

Get Info on their OS for your Shortcut

Usage Info is located at the top of the shortcut when you edit it

NOTICE: THIS IS ON BETA, AND IS NOT FULLY DONE YET

Nouveautés

Version 1.4

Added a New Function

Historique des versions
1.4 13 mai 2026

Added a New Function

1.2 13 mai 2026

Fixed Version Number

1.1 13 mai 2026

Made the Usage Info a comment action instead of text action

1.0 13 mai 2026

First release

Ce qu’il fait

46 actions
  1. Comment
    Usage Info: - Get the Latest OS Version: Action: Get the Latest OS Version or A: GTLOSV | For Quick Look: Action: Get the Latest OS Version, Quick Look of A: GTLOSV, QL Action - Check for the Latest OS Version: Action: Check for the Latest OS Versio…
  2. Text
  3. Get Item from List
  4. If
  5. Get Items from RSS Feed
  6. Filter Articles
  7. Split Text
  8. Replace Text
  9. Replace Text
  10. Match Text
  11. Calculate Statistics
  12. Text
  13. If
  14. Quick Look
  15. If
  16. Get Items from RSS Feed
  17. Get Items from RSS Feed
  18. List
  19. Filter Articles
  20. Match Text
  21. Match Text
  22. Replace Text
  23. Set Variable
    CleanList
  24. Repeat with Each
  25. If
  26. Add to Variable
  27. Replace Text
  28. Set Variable
    HigherOSVersions
  29. Repeat with Each
  30. If
  31. Add to Variable
  32. Count
  33. If
  34. Filter Articles
  35. Calculate Statistics
  36. Set Variable
    NewOSVersionAvailable
  37. Repeat with Each
  38. If
  39. Text
  40. Add to Variable
  41. If
  42. Text
  43. If
  44. Text
  45. If
  46. Text

Afficher en tant que code
Bêta

Chaque action de ce raccourci écrite en Cherri, un langage de programmation pour Raccourcis. Idéal pour comprendre son fonctionnement.

#include 'actions/web'
#define color darkgray
#define glyph gear

/*
Usage Info:
- Get the Latest OS Version: Action: Get the Latest OS Version or A: GTLOSV | For Quick Look: Action: Get the Latest OS Version, Quick Look of A: GTLOSV, QL
Action
- Check for the Latest OS Version: Action: Check for the Latest OS Version or A: CFTLOSV
- Get their Current OS Version: Action: Get their Current OS Version or A: GTCOSV

Make a new shortcut and get a text action and type the code in the text action and then get a run shortcut action and make it go to this shortcut and then make sure you have the input being the text action and then your done

NOTICE: THIS DOESN'T SUPPORT BETA OS VERSIONS AND UPDATES YET
*/
const Text = "{ShortcutInput}"
getLastItem(Text)

if  beginsWith "Action: Get the Latest OS Version" ||  == "A: GTLOSV" {
	const RSSItems = getRSS(50, "feed://developer.apple.com/news/releases/rss/releases.rss")
	rawAction("is.workflow.actions.filter.articles", {
		"WFContentItemFilter": "",
		"WFContentItemInputParameter": "RSSItems",
		"WFContentItemLimitEnabled": false,
		"WFContentItemLimitNumber": 1,
		"WFContentItemSortOrder": "Latest First",
		"WFContentItemSortProperty": "Published Date"
	})
	splitText(Articles['Title'], "(")
	replaceText(" ", "")
	replaceText(Device['OS'], "")
	const Matches = containsText(, "\d+\.\d+(\.\d+)")
	statistic("Maximum", nil)
	const Text1 = "{Device['OS']} {}"
	if  == "Action: Get the Latest OS Version, Quick Look" ||  == "A: GTLOSV, QL" {
		quicklook(Text1)
	}
}

if  == "Action: Check for the Latest OS Update" ||  == "A: CFTLOSU" {
	getRSS(50, "feed://developer.apple.com/news/releases/rss/releases.rss")
	getRSS(50, "https://ipsw.me/timeline.rss")
	const List = list(, )
	rawAction("is.workflow.actions.filter.articles", {
		"WFContentItemFilter": "",
		"WFContentItemInputParameter": "List",
		"WFContentItemLimitEnabled": false,
		"WFContentItemLimitNumber": 1,
		"WFContentItemSortOrder": "Latest First",
		"WFContentItemSortProperty": "Published Date"
	})
	containsText(['Title'], "{Device['OS']}\s\d+\.\d+(\.\d+)?")
	containsText(['Title'], "{Device['OS']}\s\d+")
	const UpdatedText = replaceText("{Device['OS']} ", "")
	@CleanList = nil
	for _ in UpdatedText {
		if @CleanList !contains @RepeatItem {
			@CleanList = @RepeatItem
		}
	}
	const UpdatedText1 = replaceText("\..*", "", Device['System Version'], false, true)
	@HigherOSVersions = nil
	for _ in @CleanList {
		if @RepeatItem > UpdatedText1 {
			@HigherOSVersions = @RepeatItem
		}
	}
	const Count = count(@HigherOSVersions)
	if Count > 1 {
		rawAction("is.workflow.actions.filter.articles", {
			"WFContentItemFilter": "",
			"WFContentItemInputParameter": "List",
			"WFContentItemLimitEnabled": false,
			"WFContentItemLimitNumber": 1,
			"WFContentItemSortOrder": "Latest First",
			"WFContentItemSortProperty": "Published Date"
		})
		const Maximum = statistic("Maximum", nil)
		@NewOSVersionAvailable = nil
		for _ in Maximum {
			if @RepeatItem > Device['System Version'] {
				@NewOSVersionAvailable += "Yes"
			}
		}
		if @NewOSVersionAvailable == "Yes" {
		}
	} else {
	}
}

if  == "Action: Get their Current OS Version" ||  == "A: GTCOSV" {
}
Ouvrir dans Cherri Playground Décompilé avec cherri 2.3.0 (GPL-2.0). Quelques corrections peuvent être nécessaires avant la compilation.

Notes et avis

Écrire un avis
–
sur 5
★★★★★
★★★★
★★★
★★
★
0 ratings

Aucun avis pour le moment. Sois le premier à partager ton avis !

Publicité

Plus de coltensus

Tout afficher

Ça pourrait aussi te plaire

Tout afficher
Publicité