Jump to content

dfay

Member
  • Posts

    1,054
  • Joined

  • Last visited

  • Days Won

    61

Posts posted by dfay

  1. That script was by automation legend Rob Trew - he's still active on the DT forums as houthakker and on GIthub here: https://github.com/RobTrew/tree-tools and/or @complexpoint on Twitter.

     

    But I can also take a look in the next few days at what you're trying to do - I also use BibDesk.  BD & Skim & DT allow for more through automation than any other combo. of apps. I can think of, so it's well worth learning AppleScript if you're going to work with that combo.  (In fact I don't use TeX at all but I use BibDesk just because of its scriptability...).

     

     

  2. Here's what your log should show:

     

    1384074606_ScreenShot2020-12-04at12_04_54AM.thumb.png.dc201778c6fa02b030acdf8462ae3d7e.png

     

    It looks like you're passing the file name as the query - is that what you're trying to do?  I had thought you were adding separate files but not using the workflow to select among them.  

    Here's what my script filters look like:

     

    Screen Shot 2020-12-03 at 11.57.42 PM.png

    I've added several with unique keywords for each and different csv files in the command above.

     

  3. Yeah I subsequently tried the demo & it works for me.

     

    Here's the output - looks fine to me.

     

    <?xml version="1.0"?>
    <items><item uid="bib/Users/someusername/Library/Caches/Metadata/edu.ucsd.cs.mmccrack.bibdesk/Cannon-2010a.bdskcache" arg="/Users/someusername/Library/Caches/Metadata/edu.ucsd.cs.mmccrack.bibdesk/Cannon-2010a.bdskcache"><title>Vulnerability, resilience and development discourses in context of climate change</title><subtitle>article, 2010: Cannon, Terry; Mu&#x308;ller-Mahn, Detlef</subtitle><icon>icon.png</icon></item><item uid="bib/Users/someusername/Library/Caches/Metadata/edu.ucsd.cs.mmccrack.bibdesk/McMullin-2016a.bdskcache" arg="/Users/someusername/Library/Caches/Metadata/edu.ucsd.cs.mmccrack.bibdesk/McMullin-2016a.bdskcache"><title>Cancer and the Comics: Graphic Narratives and Biolegitimate Lives</title><subtitle>article, 2016: McMullin, Juliet</subtitle><icon>icon.png</icon></item><item uid="bib/Users/someusername/Library/Caches/Metadata/edu.ucsd.cs.mmccrack.bibdesk/Marianne-Bertrand-2005a.bdskcache" arg="/Users/someusername/Library/Caches/Metadata/edu.ucsd.cs.mmccrack.bibdesk/Marianne-Bertrand-2005a.bdskcache"><title>Implicit Discrimination</title><subtitle>article, 2005: Marianne Bertrand, Dolly Chugh; Mullainathan, Sendhil</subtitle><icon>icon.png</icon></item><item uid="bib/Users/someusername/Library/Caches/Metadata/edu.ucsd.cs.mmccrack.bibdesk/Mcmullin-2010a.bdskcache" arg="/Users/someusername/Library/Caches/Metadata/edu.ucsd.cs.mmccrack.bibdesk/Mcmullin-2010a.bdskcache"><title>The Healthy Ancestor: Embodied Inequality and the Revitalization of Native Hawai'ian Health</title><subtitle>book, 2010: Mcmullin, Juliet</subtitle><icon>icon.png</icon></item><item uid="bib/Users/someusername/Library/Caches/Metadata/edu.ucsd.cs.mmccrack.bibdesk/McMullan-2002a.bdskcache" arg="/Users/someusername/Library/Caches/Metadata/edu.ucsd.cs.mmccrack.bibdesk/McMullan-2002a.bdskcache"><title>Lobster poaching and the ironies of law enforcement</title><subtitle>article, 2002: McMullan, J.L.; Perrier, D.C.</subtitle><icon>icon.png</icon></item><item uid="bib/Users/someusername/Library/Caches/Metadata/edu.ucsd.cs.mmccrack.bibdesk/Muller-1987a.bdskcache" arg="/Users/someusername/Library/Caches/Metadata/edu.ucsd.cs.mmccrack.bibdesk/Muller-1987a.bdskcache"><title>Transkei Livestock Census Data - by Magisterial District</title><subtitle>book, 1987: Muller, N.D.; Mpela, V.N.</subtitle><icon>icon.png</icon></item><item uid="bib/Users/someusername/Library/Caches/Metadata/edu.ucsd.cs.mmccrack.bibdesk/Muller-1987b.bdskcache" arg="/Users/someusername/Library/Caches/Metadata/edu.ucsd.cs.mmccrack.bibdesk/Muller-1987b.bdskcache"><title>The Population of Transkei - by Magisterial District</title><subtitle>book, 1987: Muller, N.D.; Mpela, V.N.</subtitle><icon>icon.png</icon></item></items>
    <!-- Time for searching: 0.80533909797668 sec-->
    <!-- Total time: 0.80955910682678 sec-->
    [10:16:47.624] ERROR: BibDesk Search[Script Filter] JSON error: JSON text did not start with array or object and option to allow fragments not set.

     

  4. I have an old unsupported 3rd party script filter that outputs Alfred XML & I don't have time or knowledge to rewrite the php to output JSON.  This was working fine until recently it started throwing the following error:

     

    [10:16:47.624] ERROR: BibDesk Search[Script Filter] JSON error: JSON text did not start with array or object and option to allow fragments not set.

     

    It seems Alfred has stopped recognizing the old deprecated XML.  Is there a way to force a script filter to still use the legacy XML processor instead?

     

    https://www.alfredapp.com/help/workflows/inputs/script-filter/xml/ for background. 

×
×
  • Create New...