ShareShortcuts

Post To Twitter

Post to Twitter from the Share menu

blackhatteam
Fork “Post To Twitter”

Built something new on top of this Shortcut? Share it as a fork: it becomes a Shortcut of your own, which you manage, and both pages link to each other so blackhatteam gets credit.

  1. 1Get the Shortcut and change it in the Shortcuts app. Give it a name of its own.
  2. 2Share it from the Shortcuts app and copy the iCloud link.
  3. 3Come back here, paste the link and describe what is different, e.g. “Added a step that uses Apple Intelligence to personalise the text.”
Downloads
35K
Saved
0
Actions
17
Category
Social Network
Version
1.0
Language
EN

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

Version History
1.0 Feb 3, 2023

First release

What it does

17 actions
  1. Get File
  2. If
  3. Create Folder
  4. Show Alert
  5. Open URLs
  6. Wait
  7. Text
  8. Close Tab
    com.apple.mobilesafari
  9. Show Alert
  10. Stop This Shortcut
  11. Copy to Clipboard
  12. Choose from Menu
  13. Choose from Menu
    Add Text to Tweet
  14. Ask for Input
  15. Post to X
  16. Choose from Menu
    Tweet Without Text
  17. Post to X

View as code
Beta

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

See All

You Might Also Like

See All
Advertisement