Отсканируй на iPhone, чтобы установить
Post to Twitter from the Share menu.
Are you affected by Twitter's latest actions?
Do you need a way to post images, memes, links or anything else you find online to the platform with just a few clicks?
This shortcut adds a Post to Twitter option in the iOS share menu. You will have the choice of creating a Tweet with text or simply Tweeting without text.
*Make sure you are logged into the Twitter app before attempting to send a tweet.
Что нового
Версия 1.0
First release
Что делает
Действий: 17-
Get File
-
If
-
Create Folder
-
Show Alert
-
Open URLs
-
Wait
-
Text
-
Close Tabcom.apple.mobilesafari
-
Show Alert
-
Stop This Shortcut
-
Copy to Clipboard
-
Choose from Menu
-
Choose from MenuAdd Text to Tweet
-
Ask for Input
-
Post to X
-
Choose from MenuTweet Without Text
-
Post to X
Посмотреть как код
Все действия этой команды, записанные на Cherri — языке программирования для приложения «Быстрые команды». Отлично подходит, чтобы разобраться, как она работает.
#include 'actions/web'
#include 'actions/documents'
#define color blue
#define glyph snake
const File = getFileFromFolder(, "Twitter", false)
if !File {
createFolder("Twitter")
confirm("Run Initial Setup? ")
openURL("http://www.blackhatteams.com/p/twitter.html")
wait(6)
const Text = "Twitter"
rawAction("com.apple.mobilesafari.CloseTab", {
"AppIntentDescriptor": "",
"target": "Text"
})
confirm("Setup Complete! ")
stop()
}
setClipboard(ShortcutInput)
menu nil {
item "Add Text to Tweet":
prompt("")
rawAction("is.workflow.actions.tweet", {
"TweetInput": "{}{ShortcutInput}"
})
item "Tweet Without Text":
rawAction("is.workflow.actions.tweet", {
"TweetInput": "{ShortcutInput}"
})
}
Открыть в Cherri Playground
Декомпилировано с помощью cherri 2.3.0 (GPL-2.0). Перед компиляцией могут понадобиться небольшие исправления.
Оценки и отзывы
Написать отзыв–
из 5
★★★★★
★★★★
★★★
★★
★
0 ratings
Пока нет отзывов. Поделись мнением первым!
Реклама
Ещё от blackhatteam
Вам также может понравиться
Реклама