Lesson

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...

Duration
3 min
Access
Free
Transcript
Available

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.

Terminal
url=$(osascript -e 'tell application "Google Chrome" to return URL of active tab of front window')

echo "[$1]($url)"