Choose the photos or get the most recent, it will be uploaded to imgur and copy the image url to clipboard.
What's New
Version 1.0
First release
What it does
12 actions-
Choose from MenuImgur Uploader
-
Choose from Menu選擇上傳項目
-
Select Photos
-
Imgur Upload
-
Combine Text
-
Copy to Clipboard
-
Choose from Menu最近項目
-
Get Latest Photos
-
Imgur Upload
-
Combine Text
-
Copy to Clipboard
-
Show Notification圖片網址已複製到剪貼簿 ------------------ …
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/photos'
#define color teal
#define glyph duplicate
const 4 = menu "Imgur Uploader" {
item "選擇上傳項目":
const = selectPhotos(true)
rawAction("is.workflow.actions.imgur.upload", {
"WFImgurAnonymous": false,
"WFImgurDirectLink": false,
"WFInput": ""
})
const 1 = joinText([map[Value:map[attachmentsByRange:map[{0, 1}:map[OutputName:Imgur URL OutputUUID:15095AB2-CD0B-4631-BA57-DE220C72404E Type:ActionOutput]] string:] WFSerializationType:WFTextTokenString] ])
setClipboard(1, true)
item "最近項目":
const 2 = getLatestPhotos(0)
rawAction("is.workflow.actions.imgur.upload", {
"WFImgurAnonymous": false,
"WFImgurDirectLink": false,
"WFInput": "2"
})
const 3 = joinText(ImgurURL)
setClipboard(3, true)
}
showNotification("圖片網址已複製到剪貼簿\n------------------\n{4}", 4)
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