Generate a Markdown Link From Selected Text with Chrome's Current Url Using Alfred
lessonDuration 3m 13sFree
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. ```bash url=$(osascript -e 'tell application "Google Chrome" to return URL of active tab of front window') echo "[$1]($url)" ```