Jump to content
Raygun

Keywords for workflows bring up Internet Search

Recommended Posts

I am having an issue with workflows that you type after entering the keyword. (From downloaded workflows, in particular http://www.alfredforum.com/topic/917-reminders/ and the Rdio one.) What happens is:

1. I type the keyword (I'll use the reminders as an example)

     - radd (to add a reminder)

2. Press space

     - It immediatly changes from the workflow to searching the web

3. Back to Step 1.

     - Press enter

     - It processes for a second

     - It brings up web search.

 

It is the same with Rdio any time I enter any info it goes to web search. What is wrong? Am I dumb or do I have a real issue.

Edited by Raygun

Share this post


Link to post

I am having an issue with workflows that you type after entering the keyword. (From downloaded workflows, in particular http://www.alfredforum.com/topic/917-reminders/ and the Rdio one.) What happens is:

1. I type the keyword (I'll use the reminders as an example)

     - radd (to add a reminder)

2. Press space

     - It immediatly changes from the workflow to searching the web

3. Back to Step 1.

     - Press enter

     - It processes for a second

     - It brings up web search.

 

It is the same with Rdio any time I enter any info it goes to web search. What is wrong? Am I dumb or do I have a real issue.

 

Sounds as if the scripts that run when you execute those keywords are failing for some reason. I'm not sure what language the Reminders workflow is done in but I know that Rdio is done in PHP. It generates XML to show the list of results. If you enter something that causes an error in the script (foreign character or something), the script doesn't generate the XML output and Alfred considers that to be "no results" and goes to the fallback (web search).

 

Are you having issues with multiple workflows (aside from these two)? Just trying to figure out where the problem may be.

Share this post


Link to post

I looked at those scripts and they both give improper xml for a "no results".  Therefore, it is the script writer that needs to fix them. But, both cases, if you start typing something that will match, then the output is normal.

Share this post


Link to post

I looked at those scripts and they both give improper xml for a "no results".  Therefore, it is the script writer that needs to fix them. But, both cases, if you start typing something that will match, then the output is normal.

 

This isn't necessarily the fault of the script/author. As mentioned in my previous reply, the Rdio one was written in PHP. Not sure about the other one (depending on which one he's using), it could be PHP as well. We've come across users that their default PHP installation was messed up. Or, as mentioned, it could be an issue with a foreign character. There are several things that could be the source.

Share this post


Link to post

I have this same problem, but with other workflows as well. It happens when I try to update my workflows with alleyoop and also when I try to switch audio outputs using Sampayo's "Audio Switch" workflow.

Share this post


Link to post

Since search brought me to this old thread I thought I'd share my solution for this very problem.

 

The solution was to suppress PHP notice error messages. In the workflow main PHP file I just added this at the top:

error_reporting(E_ALL & ~E_NOTICE);

(Credit to neohunter who solved it at Github.)

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.

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