shortText
Turn selected text in almost any app into a clean, shareable link — free, no account
shorttextПросмотр
Turn selected text in almost any app into a clean, shareable link — free, no account.
Select text anywhere, run shortText, and it creates an unlisted shortText, copies the link to your clipboard, and opens it in your browser. Great for sharing snippets, logs, notes, or long messages that don't fit elsewhere. Works on macOS, iPhone, and iPad.
How to use
- iPhone / iPad — select text → Share → shortText - Mac — select text → right-click → Services → shortText Run it from a web browser and it also offers to append the page link.
One-time Mac setup Open the shortcut, click the ⓘ button, and tick Use as Quick Action → Services Menu so it appears in the right-click menu.
Good to know
- No account, no sign-in
- Plain text in, link out — your text renders with Markdown (headings, bold, *italic*, links, lists, code, quotes)
- Up to 30,000 characters per shortText
By shortText.com — https://shorttext.com
Что нового
First release
Что делает
Действий: 22-
Date
-
Format Date
-
Format Date
-
Text
-
Get URLs from Input
-
Set VariableBody
-
If
-
Choose from MenuAdd the page link?
-
Choose from MenuAdd link
-
Text
-
Set VariableBody
-
Choose from MenuJust the text
-
Get Contents of URLhttps://shorttext.com/api/paste
-
Get Dictionary Value
-
If
-
Text
-
Copy to Clipboard
-
Show Notification…
-
Open URLs
-
If
-
Get Dictionary Value
-
Show AlertCouldn't create shortText
Посмотреть как код
Все действия этой команды, записанные на Cherri — языке программирования для приложения «Быстрые команды». Отлично подходит, чтобы разобраться, как она работает.
#include 'actions/web'
#include 'actions/calendar'
#define glyph textBubble
currentDate()
formatDate(, "Custom", "MM")
formatDate(, "Custom", "dd")
const URLs = getURLs(ShortcutInput)
@Body = ShortcutInput
if URLs {
menu "Add the page link?" {
item "Add link":
@Body = "{ShortcutInput}\n\n{URLs}"
item "Just the text":
}
}
const ContentsOfURL = jsonRequest("https://shorttext.com/api/paste", "POST", {
"body": "{@Body}",
"expiry": "never",
"visibility": "unlisted"
}, {
"Authorization": "Bearer {}",
"Content-Type": "application/json"
})
const DictionaryValue = getValue(ContentsOfURL, "slug")
if DictionaryValue {
const Text = "https://shorttext.com/{DictionaryValue}"
setClipboard(Text)
showNotification(Text, "shortText link copied")
openURL(Text)
} else {
alert(, "Couldn't create shortText")
}
Оценки и отзывы
Написать отзывПока нет отзывов. Поделись мнением первым!