Escanea con tu iPhone para instalar
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
Novedades
Versión 1.4
Added a New Function
Qué hace
46 acciones-
CommentUsage 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…
-
Text
-
Get Item from List
-
If
-
Get Items from RSS Feed
-
Filter Articles
-
Split Text
-
Replace Text
-
Replace Text
-
Match Text
-
Calculate Statistics
-
Text
-
If
-
Quick Look
-
If
-
Get Items from RSS Feed
-
Get Items from RSS Feed
-
List
-
Filter Articles
-
Match Text
-
Match Text
-
Replace Text
-
Set VariableCleanList
-
Repeat with Each
-
If
-
Add to Variable
-
Replace Text
-
Set VariableHigherOSVersions
-
Repeat with Each
-
If
-
Add to Variable
-
Count
-
If
-
Filter Articles
-
Calculate Statistics
-
Set VariableNewOSVersionAvailable
-
Repeat with Each
-
If
-
Text
-
Add to Variable
-
If
-
Text
-
If
-
Text
-
If
-
Text
Ver como código
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'
#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" {
}
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
Más de coltensus
También te puede gustar
Publicidad