Scan with your iPhone to install
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.
What's New
Version 1.0
First release
What it does
17 actions-
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
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/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}"
})
}
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
More by blackhatteam
You Might Also Like
Advertisement