Jump to content

Prepending text to clipboard url and opening in chrome


Recommended Posts

I am trying to create a workflow to send either the URL of the current page or the url on my clipboard to Chrome with "cache" prepended onto it. I've seen several workflows to open the current page in Chrome, and I created a snippet to form the final url (cache:http://....), but, when I've tried to add cache: to the URL field in several options, it just opens a blank Chrome window.

 

Any help would be much appreciated!

Link to comment

I am trying to create a workflow to send either the URL of the current page or the url on my clipboard to Chrome with "cache" prepended onto it. I've seen several workflows to open the current page in Chrome, and I created a snippet to form the final url (cache:http://....), but, when I've tried to add cache: to the URL field in several options, it just opens a blank Chrome window.

 

Any help would be much appreciated!

 

Could you potentially share the workflow that you've created so that we could take a look at it and see where you might be going wrong with it?

Link to comment

Sure, David. I couldn't figure out what to do with the snippet once I created it, so it just exists. Both of these workflows just open a blank Chrome window. The first thing I tried was:

 

Hotkey

Action: Pass through to workflow

Argument: OS X Clipboard contents

Prefix: cache:

 

leading to:

 

Open URL

URL: {query}

Browser: Chrome

 

The second thing I tried was

 

Keyword

Keyword: cache (with space) (argument required)

 

leading to:

 

Open URL

URL: cache:{query}

Browser: Chrome

 
 
Thanks!
Link to comment

 

Sure, David. I couldn't figure out what to do with the snippet once I created it, so it just exists. Both of these workflows just open a blank Chrome window. The first thing I tried was:

 

Hotkey

Action: Pass through to workflow

Argument: OS X Clipboard contents

Prefix: cache:

 

leading to:

 

Open URL

URL: {query}

Browser: Chrome

 

The second thing I tried was

 

Keyword

Keyword: cache (with space) (argument required)

 

leading to:

 

Open URL

URL: cache:{query}

Browser: Chrome

 
 
Thanks!

 

 

Is the result you are looking for the same as navigating to this?

http://webcache.googleusercontent.com/search?q=cache:http://digg.com

 

It opens a cached version of the site passed in the q variable. If so, then you could just create a custom search for alfred that adds the url into the url above and would work.

Link to comment

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
×
×
  • Create New...