Jump to content


  • Posts

  • Joined

  • Last visited

BBlakes's Achievements

Helping Hand

Helping Hand (3/5)



  1. That is really great, thanks! I duplicated this workflow and tweaked the keywords and modified the scripts, as you suggested, and now I can get CAS numbers, SMILES, and IUPAC names right from Alfred!
  2. Thanks smarg19! I'm new here and I am probably missing something obvious. I setup the workflow as you suggested. In the Run Script action, I set the language to /usr/bin/python and pasted the script into the Script textbox. Its not immediately clear to me how to format the query for this script. I have tried a number of different combinations including pasting from the test file provided on the GitHub. Below is the debug from the alfred workflow. Any help is greatly appreciated. Best [ERROR: alfred.workflow.action.script] ..F ====================================================================== FAIL: test_resolve (__main__.TestCIRpy) ---------------------------------------------------------------------- Traceback (most recent call last): File "<string>", line 35, in test_resolve AssertionError: 'N[C@@H](C)C(=O)O' != 'CC(C(O)=O)N' ---------------------------------------------------------------------- Ran 3 tests in 0.290s FAILED (failures=1) [INFO: alfred.workflow.action.script] Processing output 'alfred.workflow.output.largetype' with arg '' [INFO: alfred.workflow.action.script] Processing output 'alfred.workflow.output.clipboard' with arg ''
  3. Hello I would like search the Chemical Identifier Resolver database and have the results returned to my clipboard. This seems like it should be a rudimentary task but I am having trouble getting the contents of the browser window onto my clipboard. Below is the custom search url I am using and an example query http://cactus.nci.nih.gov/chemical/structure/{query}/cas http://cactus.nci.nih.gov/chemical/structure/phenylalanine/cas I was inspired by a post at Macs In Chemistry, and I would like to simplify their applescript by integrating alfred. Desired order of operations: Activate alfred Type keyword (example: cas) Type name of the chemical (example: phenylalanine) Press return Alfred retrieves the information from the database and clips it to my clipboard Thanks for any help!
  • Create New...