Nyheder
Version 1.0
First release
Hvad den gør
5 handlinger-
Repeat with Each
-
If
-
Run Shell Script
-
If
-
Show NotificationICNS can only be created from a PNG image
Vis som kode
Alle genvejens handlinger skrevet ud i Cherri, et programmeringssprog til genveje. Perfekt til at lære, hvordan den virker.
#define mac true
#include 'actions/mac'
#define color orange
#define glyph waterDrop
for _ in ShortcutInput {
if @RepeatItem == "png" {
runShellScript("name=${1%.*}\nmkdir \"$name\".iconset\nsips -z 16 16 $1 --out \"$name\".iconset/icon_16x16.png\nsips -z 32 32 $1 --out \"$name\".iconset/[email protected]\nsips -z 32 32 $1 --out \"$name\".iconset/icon_32x32.png\nsips -z 64 64 $1 --out \"$name\".iconset/[email protected]\nsips -z 128 128 $1 --out \"$name\".iconset/icon_128x128.png\nsips -z 256 256 $1 --out \"$name\".iconset/[email protected]\nsips -z 256 256 $1 --out \"$name\".iconset/icon_256x256x.png\nsips -z 512 512 $1 --out \"$name\".iconset/[email protected]\nsips -z 512 512 $1 --out \"$name\".iconset/icon_512x512.png\ncp $1 \"$name\".iconset/[email protected]\niconutil -c icns \"$name\".iconset\nrm -R \"$name\".iconset", @RepeatItem, "as arguments")
} else {
showNotification("ICNS can only be created from a PNG image", "Invalid File Format")
}
}
Åbn i Cherri Playground
Dekompileret med cherri 2.3.0 (GPL-2.0). Kan kræve små rettelser, før den kan kompileres.
Bedømmelser og anmeldelser
Skriv en anmeldelse–
ud af 5
★★★★★
★★★★
★★★
★★
★
0 ratings
Ingen anmeldelser endnu. Vær den første!
Annonce
Du vil måske også kunne lide
Annonce