Jump to content

Wolfram|Alpha workflow


Recommended Posts

  • 2 weeks later...

Hi, love this workflow and use it all the time!  However it's been failing on me in recent weeks/months so I thought I'd check the debug output, and it seems that it needs to be updated for Alfred 3?:

 

Starting debug for 'Wolfram|Alpha'

[2016-10-24 00:22:09][STDERR: input.scriptfilter] mkdir: /Users/****/Library/Caches/com.runningwithcrayons.Alfred-2/Workflow Data: No such file or directory
[2016-10-24 00:22:09][ERROR: input.scriptfilter] JSON error: JSON text did not start with array or object and option to allow fragments not set. in JSON:
Warning: file_put_contents(/Users/****/Library/Caches/com.runningwithcrayons.Alfred-2/Workflow Data/tylereich.wolframalpha/wolfram.xml): failed to open stream: No such file or directory in /Users/****/Dropbox/Backups/Apps/Alfred/Alfred.alfredpreferences/workflows/user.workflow.7b25af96-5525-4bba-a36c-242fa6a68898/wolfram.php on line 52

Warning: file_put_contents(/Users/****/Library/Application Support/Alfred 2/Workflow Data/tylereich.wolframalpha//Users/****/Library/Caches/com.runningwithcrayons.Alfred-2/Workflow Data/tylereich.wolframalpha/wolfram.xml): failed to open stream: No such file or directory in /Users/****/Dropbox/Backups/Apps/Alfred/Alfred.alfredpreferences/workflows/user.workflow.7b25af96-5525-4bba-a36c-242fa6a68898/workflows.php on line 399
<?xml version="1.0"?>
<items><item uid="wolfram t" arg="t" valid="yes" autocomplete=""><title></title><subtitle>t  (character)</subtitle><icon>icon.png</icon></item></items>
[2016-10-24 00:22:15][STDERR: input.scriptfilter] mkdir: /Users/****/Library/Caches/com.runningwithcrayons.Alfred-2/Workflow Data: No such file or directory
[2016-10-24 00:22:15][ERROR: input.scriptfilter] JSON error: JSON text did not start with array or object and option to allow fragments not set. in JSON:
Warning: file_put_contents(/Users/****/Library/Caches/com.runningwithcrayons.Alfred-2/Workflow Data/tylereich.wolframalpha/wolfram.xml): failed to open stream: No such file or directory in /Users/****/Dropbox/Backups/Apps/Alfred/Alfred.alfredpreferences/workflows/user.workflow.7b25af96-5525-4bba-a36c-242fa6a68898/wolfram.php on line 52

Warning: file_put_contents(/Users/****/Library/Application Support/Alfred 2/Workflow Data/tylereich.wolframalpha//Users/****/Library/Caches/com.runningwithcrayons.Alfred-2/Workflow Data/tylereich.wolframalpha/wolfram.xml): failed to open stream: No such file or directory in /Users/****/Dropbox/Backups/Apps/Alfred/Alfred.alfredpreferences/workflows/user.workflow.7b25af96-5525-4bba-a36c-242fa6a68898/workflows.php on line 399
<?xml version="1.0"?>
<items><item uid="wolfram test" arg="test" valid="yes" autocomplete=""><title>1 | verb | put to the test, as for its quality, or give experimental use to
2 | verb | test or examine for the presence of disease or infection
3 | verb | examine someone's knowledge of something
4 | verb | show a certain characteristic when tested
5 | verb | achieve a certain score or rating on a test
6 | verb | determine the presence or properties of (a substance)
7 | verb | undergo a test
8 | noun | trying something to find out about it
(13 meanings)</title><subtitle>test  (English word)</subtitle><icon>icon.png</icon></item></items>

 

To clarify: I'm not seeing the results that are being returned here, it just falls back to Google search.

Link to comment
  • 2 weeks later...
  • 6 months later...
  • 1 month later...
On 5/12/2017 at 3:50 PM, David said:


 

Here's a version that works, i copied it and changed a few lines in the 'workflow.php' to make it work with Alfred 3:  https://github.com/notDavid/alfred-Wolfram-Alpha/raw/master/Wolfram-Alpha.alfredworkflow

 

This is great! Would you mind adding this to Packal?

 

Edit: I hope you don't mind, but I've taken your work and included it in my own repo, which tracks the source files from Tyler's first commit, and contacted Tyler to see if he will update it on Packal so that anybody using Packal updater will get this:

 

https://github.com/jsit/alfred-wolfram-alpha

Edited by Jay S
Link to comment
On 10/9/2016 at 1:09 PM, Dagaloni said:

Ok, I feel kinda stupid, but how exactly do I enter my AppID? :huh:

 

In Alfred, type "appid" followed by your ID. It will query Wolfram|Alpha to verify, then you can hit Enter to save.

Link to comment
  • 1 year later...
  • 11 months later...
On 6/28/2017 at 8:54 PM, Jay S said:

https://github.com/jsit/alfred-wolfram-alpha

When I go to this page and download the workflow from the "dist"-folder I am able to get it running for Alfred 4. Thanks for fixing it Jay S

Link to comment
  • 1 year later...
On 4/8/2020 at 6:45 AM, RKo said:

When I go to this page and download the workflow from the "dist"-folder I am able to get it running for Alfred 4. Thanks for fixing it Jay S

@RKo Has it worked for you with the most recent update? I tried the 2013 and 2017 versions. They both send me to default search results

Link to comment
  • 5 months later...
On 12/12/2021 at 9:32 PM, GatorMapi said:

@RKo Has it worked for you with the most recent update? I tried the 2013 and 2017 versions. They both send me to default search results

 

Same to me, does not work on my new Macbook Air M1 (Monterey 12.4). I would very much appreciate an solution for that.

Edited by pavelle
Link to comment

@pavelle A quick look at the 2017 post by @Jay S shows the workflow uses PHP, which Apple removed from macOS Monterey. You can read more about it here:

https://www.alfredapp.com/blog/releases/alfred-4-6-ready-for-macos-monterey/

 

Odds are reinstalling PHP via Homebrew will get you some of the way there, but the workflow doesn't appear to be maintained so if Wolfram Alpha itself has changed in the past 5 years, these changes won't be reflected in the workflow.

 

If you use node.js, there's another Wolfram workflow here:

https://www.npmjs.com/package/alfred-wolfram-alpha

Link to comment
3 hours ago, Vero said:

@pavelle A quick look at the 2017 post by @Jay S shows the workflow uses PHP, which Apple removed from macOS Monterey. You can read more about it here:

https://www.alfredapp.com/blog/releases/alfred-4-6-ready-for-macos-monterey/

 

Odds are reinstalling PHP via Homebrew will get you some of the way there, but the workflow doesn't appear to be maintained so if Wolfram Alpha itself has changed in the past 5 years, these changes won't be reflected in the workflow.

 

If you use node.js, there's another Wolfram workflow here:

https://www.npmjs.com/package/alfred-wolfram-alpha

 

Thank you Vero, kyle Schwartz's worflow works well!

Edited by pavelle
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...