Jump to content

Opening a browser tab to URL based on clipboard contents


Recommended Posts

I've been using alfred for a while but to a very limited extent.  I want to get better and use more features.  Here's something I want to do, is this possible?

 

Now: 

Step 1.) Copy and paste a long string of text

Step 2.) Switch to Chrome

Step 3.) Open a new tab

Step 4.) type in URL/place

Step 5.) paste my clipboard, so it ends up as URL/place/clipboardContents

 

Is there a way I can automate this?  I do this probably 10-20x per day... and I'd love to get that 5 step process down to 1 or 2 steps.  I feel like Alfred can do this, but i'm not sure where to start. 

Link to comment

@2Pants Welcome to the forum :)

 

If Chrome your default browser? If so, the lowest-setup option is to copy your URL, pop up Alfred and paste the URL, and hit Enter. Alfred will launch your default browser with the URL.

 

Alternatively, you can create a simple hotkey-based workflow.

  • Add a hotkey object and set the argument to either Clipboard Content or selection in macOS.
  • Connect the hotkey object to an "Open URL" object, leaving the {query} in the URL field. Pick the browser you want it to open in, and save. :) 

This assumes you're copying a complete URL with http:// or https:// - If you're not, you can add that in front of the query for your Open URL object.

 

Cheers,
Vero

Link to comment

I have a workflow that does that. 

 

It copies some text in the clipboard. After I hit a magical keyboard shortcut, it opens a url with the format (URL/ClipboardContents) in a new tab in my favorite browser.

 

You combine a "hotkey action" (select "Pass through to workflow" and "selection in macOS") with an "open url" action (place {query} where you want your clipboardContent to appear) and you are good to go.

 

HTH.

 

@Vero you are too fast for me ;-)

Link to comment

@2Pants I'm not familiar with Stringify, and it's not an app anyone has mentioned before, so a native integration is highly unlikely at this point, but this is what workflows are for! :) Provided there's sufficient AppleScript, you can control it through your own workflows.

 

Cheers,
Vero

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...