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 ?

Share this post

Link to post

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.

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.

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