Jump to content

Open URL providing a URL directly

Recommended Posts

Hi everyone,


I'm currently building a workflow for searching my kippt bookmarks using script filter.


The result from the API give me directly an URL that I provide in the XML string I return to alfred, like this :


<?xml version="1.0"?>
  <item uid="kipptsearch" arg="http://another-url.com/test">
    <title>test kippt</title>
    <subtitle>kippt search</subtitle>


Then I link this to the "Open url" action and add {query} to the search url field. But as you may expected, my url is encoded and then nothing happened. 


I would like to really open a url with the "open url" action not simply make a search. Is there a way to do that ?

Link to comment

That is correct. That will not work currently. However, I'm not sure I agree that it should be changed as that action is meant for searching. If you want to open a specific URL, you could just use an AppleScript.


In the current version of Alfred 2.0 you can just add an AppleScript as action and set the contents of the ActionScript to:

on alfred_script(q)
  open location q
end alfred_script

This only works if the URL contains http:// but you can make sure that's add in your trigger or modify the AppleScript to add it if necessary.

Link to comment
  • 2 months later...

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