Skip to content

AppleScript to shorten links using the bitly API in a smart way directly with a keyboard shortcut

License

Notifications You must be signed in to change notification settings

ddelange/mac-shorturl-shortcut

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

AppleScript to shorten links using the bitly API in a smart way directly with a keyboard shortcut

Currently still using bitly API v2.0.1

Shortens links after percent-encoding them

simpleshorten

Changes Dropbox links for direct-view/direct-download

screenshotshorten

Requirements

  • Account at bitly.com
  • Mac running OS X 10.7+
  • (optional) Dropbox app

Installation

  • Copy and open the script:
git clone https://github.com/ddelange/mac-shorturl-shortcut.git ~/git/mac-shorturl-shortcut
cp -r ~/git/mac-shorturl-shortcut/ShortURL.workflow ~/Library/Services
open ~/Library/Services/ShortURL.workflow
  • Fill in your bitly username & Generic Access Token
  • Set your preferred shortcut under System Preferences/Keyboard/Services/Text/ShortURL (I like ⌃⌥⌘V)
  • (optional) Setup Dropbox direct-link screen shot sharing
    • Tick Share screenshots using Dropbox in the Import tab of Dropbox preferences
    • Screenshots will now be automatically moved to ~/Dropbox/Screenshots, its link copied to the clipboard ready for shortening