rogermedia Posted November 6, 2014 Share Posted November 6, 2014 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 Link to comment
deanishe Posted November 7, 2014 Share Posted November 7, 2014 Vitor has a bunch of AppleScripts that can get the URL and title of the frontmost tab. That should get you started. OSchrock and rogermedia 2 Link to comment
rogermedia Posted November 7, 2014 Author Share Posted November 7, 2014 Vitor has a bunch of AppleScripts that can get the URL and title of the frontmost tab. That should get you started. Thank you sir! Link to comment
rogermedia Posted November 7, 2014 Author Share Posted November 7, 2014 Ok it turns out there is already a workflow that gets the first part of what I am looking for: http://www.alfredforum.com/topic/538-send-url/ Pretty slick stuff. I am digging into it to see if I can implement the blockquote part and will also ask the developer of Send URL what his thoughts are. OSchrock 1 Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now