Jump to content
rogermedia

Workflow for copying URL and Page Title and then Pasting as HTML link

Recommended Posts

Hi,

 

I want to create a workflow so that when I am looking at a web page in Chrome I can copy the page's URL and Page Title and then when I paste it has created an HTML link with the URL and Page Title as anchor text.

 

For example lets say I am on Alfred homepage - http://www.alfredapp.com/

I use the keyboard combo of Shift+Control+Command+C and Alfred takes the URL (http://www.alfredapp.com/) and page title (Alfred App - Productivity App for Mac OS X) and creates this on the clipboard:

<a href="http://www.alfredapp.com/" title="Alfred App - Productivity App for Mac OS X">Alfred App - Productivity App for Mac OS X</a>

 

For extra credit it would be super badass if I have any text highlighted on the page to be put in blockquotes with citation and have the Page Title link added to the end.

 

For example, using the Alfred homepage again, lets say I highlight this text:

"Alfred saves you time when you search for files online or on your Mac. Be more productive with hotkeys, keywords and file actions at your fingertips."

 

Hitting Shift+Control+Command+C creates the following:

<blockquote cite="http://www.alfredapp.com/">
<p>Alfred saves you time when you search for files online or on your Mac. Be more productive with hotkeys, keywords and file actions at your fingertips.</p>
<footer>— <a href="http://www.alfredapp.com/" title="Alfred App - Productivity App for Mac OS X">Alfred App - Productivity App for Mac OS X</a></footer>
</blockquote>
 
Thanks in advance for any help and if I messed up and someone else already did this and my ability to search the forum is lacking I apologize.
 
Roger

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×