1×
Become a member
to unlock all features

Level Up!

Access all courses & lessons on egghead today and lock-in your price for life.

Autoplay

    Generate a Markdown Link From Selected Text with Chrome's Current Url Using Alfred

    Alfred is able to take your currently selected text and manipulate it in a variety of ways. You can even link it up to bash scripts which can grab data from other applications on your system. This lesson will walk you through generating a markdown link from the text you select and the currently open URL in Chrome.

    bashurl=$(osascript -e 'tell application "Google Chrome" to return URL of active tab of front window')
    
    echo "[$1]($url)"