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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...