Editorial Workflows

Shorten with Bitly

public workflow

Install Workflow...

This workflow contains at least one Python script. Only use it if you trust the person who shared this with you, and if you know exactly what it does.

I understand, install the workflow!

This is a workflow for Editorial, a Markdown and plain text editor for iOS. To download it, you need to view this page on a device that has the app installed.

Description: Shorten a URL using Bitly and tweet it.

Shared by: @devsl

Comments: Comment Feed (RSS)

There are no comments yet.

+ Add Comment

Workflow Preview
What to shorten? ?
Title
Shorten with Bit.ly
Message
What URL to shorten?
Button 1
Clipboard
Output Value
clipboard
Button 2
Open Browser Tab
Output Value
browser
Button 3
Enter a URL + Title
Output Value
enter
Show Cancel Button
ON
Clipboard ?
Run the block if
Input
  • is Equal to
  • is Not Equal to
  • Contains
  • Doesn't Contain
  • Matches Regular Expression
clipboard
Set Variable ?
Variable Name
url
Value
Clipboard
Request Text Input ?
Title
Enter a title for your link
Initial Text
  • Single Line
  • Multiple Lines
Keyboard Options:
Title contains content ?
Run the block if
Input
  • is Equal to
  • is Not Equal to
  • Contains
  • Doesn't Contain
  • Matches Regular Expression
Set Variable ?
Variable Name
title
Value
Input
…End If
Blank Title ?
Run the block if
Input
  • is Equal to
  • is Not Equal to
  • Contains
  • Doesn't Contain
  • Matches Regular Expression
Set Variable ?
Variable Name
title
Value
Untitled - Day: 1.Month: 1
…End If
…End If
Open Browser Tab ?
Run the block if
Input
  • is Equal to
  • is Not Equal to
  • Contains
  • Doesn't Contain
  • Matches Regular Expression
browser
Set Variable ?
Variable Name
url
Value
Browser URL
Where to get the title from? ?
Title
Title
Message
Where to get the title from?
Button 1
Browser Title
Output Value
Browser Title
Button 2
Enter a Title
Output Value
entertitle
Button 3
Clipboard
Output Value
clipboard
Show Cancel Button
ON
Browser Title ?
Run the block if
Input
  • is Equal to
  • is Not Equal to
  • Contains
  • Doesn't Contain
  • Matches Regular Expression
Browser Title
Set Variable ?
Variable Name
title
Value
Browser Title
…End If
Enter a Title ?
Run the block if
Input
  • is Equal to
  • is Not Equal to
  • Contains
  • Doesn't Contain
  • Matches Regular Expression
entertitle
Request Text Input ?
Title
Enter a title:
Initial Text
  • Single Line
  • Multiple Lines
Keyboard Options:
Set Variable ?
Variable Name
title
Value
Input
…End If
Title From Clipboard ?
Run the block if
Input
  • is Equal to
  • is Not Equal to
  • Contains
  • Doesn't Contain
  • Matches Regular Expression
clipboard
Set Variable ?
Variable Name
title
Value
Clipboard
…End If
Blank Title ?
Run the block if
Input
  • is Equal to
  • is Not Equal to
  • Contains
  • Doesn't Contain
  • Matches Regular Expression
Set Variable ?
Variable Name
title
Value
Untitled - Day: 1.Month: 1
…End If
…End If
Enter a URL + Title ?
Run the block if
Input
  • is Equal to
  • is Not Equal to
  • Contains
  • Doesn't Contain
  • Matches Regular Expression
blank
Request Text Input ?
Title
Enter a URL:
Initial Text
  • Single Line
  • Multiple Lines
Keyboard Options:
Set Variable ?
Variable Name
url
Value
Input
Request Text Input ?
Title
Enter a title for your document
Initial Text
  • Single Line
  • Multiple Lines
Keyboard Options:
Title contains content ?
Run the block if
Input
  • is Equal to
  • is Not Equal to
  • Contains
  • Doesn't Contain
  • Matches Regular Expression
Set Variable ?
Variable Name
title
Value
Input
…End If
Blank Title ?
Run the block if
Input
  • is Equal to
  • is Not Equal to
  • Contains
  • Doesn't Contain
  • Matches Regular Expression
Set Variable ?
Variable Name
title
Value
Untitled - Day: 1.Month: 1
…End If
…End If
Your Bit.ly Username ?
Variable Name
bitlyusername
Value
Enter your Bitly username here
Get Input ?
Variable Name
first
Value
Input
Leave Empty: Bitly Token ?
Variable Name
token
Value
Fill Login: Bitly ?
Shorten URL (bit.ly) ?
Set Variable ?
Variable Name
shortened
Value
Input
Set Clipboard ?
Generate Text ?
Text
title shortened
Set Variable ?
Variable Name
tweet
Value
Input
Open URL ?
Open in
  • In-App Browser
  • Default App / Safari
URL
shortened
Tab
  • Last-used Tab
  • New Tab
  • Tab with ID:
Unique identifier
Wait until Loaded
OFF
Reveal Browser Automatically
ON
Show HUD ?
HUD Text
Tweeting...
Duration
  • 1 Second
  • 2 Seconds
  • 3 Seconds
Icon
  • "Success"
  • "Error"
Generate Text ?
Text
tweet
Compose Tweet ?
Initial Text
Input
Stop if Canceled
ON