Jump to content

Gearbox Sorrows

Member
  • Posts

    7
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Gearbox Sorrows's Achievements

Helping Hand

Helping Hand (3/5)

0

Reputation

  1. Hello everybody, I'm currently trying to figure out the possibilities with the script filter block and I enjoy it very much. One thing that would make it even more useful for me would be if it was possible to not only filter for the "title" of a JSON entry, but also possible the subtitle or something else. My thought was to embed tags into the JSON objects which do not appear in the entry title, but can still be found through the search. { "uid": "13 27 2022 8 13", "type": "Link", "title": "Bananas", "subtitle": "Book of Tropical Fruits", "variables": { "label": "Bananas", "tags": ["fruit", "tropical", "yellow"] } } Here is an example how this could look from a JSON standpoint. Can I make the tags somehow available in the search? Best wishes.
  2. Ahh, now I understand. I thought I have to pass a List of argument strings instead of one string that's to be split. Thank you a lot! I also got it working with the variables, which fits a bit better for my workflow, but nonetheless, it's good to know how it works now.
  3. Okay, I've reduced the workflow to what I'd essentially like to do, i hope: Argsplitter Workflow I hope that makes it a little bit clearer. I've not yet tried defining the elements as their own variables. Didn't know that was possible too. I'll try that in the meantime. I'm still interested though what I'm doing wrong with the splitting.
  4. Hey everybody, Im trying to split a {query} that contains two items into distinct variables with the "split vars to args" block. Somehow, the block does not split the variable though. Here is the debugger output: [13:57:43.946] Script Filter - Getting Started[Script Filter] Processing complete [13:57:43.954] Script Filter - Getting Started[Script Filter] Passing output '( "Offensichtlichen Effekt", abcdefg )' to Split Arg to Vars [13:57:43.956] Script Filter - Getting Started[Split Arg to Vars] Processing complete [13:57:43.958] Script Filter - Getting Started[Split Arg to Vars] Passing output '( "Offensichtlichen Effekt", abcdefg )' to Post Notification The corresponding JSON entry is: { "uid": "33 25 2022 1 33", "type": "Link", "title": "Offensichtlichen Effekt", "subtitle": "[9783110526653 - Optik] Optik.pdf (page 898 of 1384)", "arg": ["Offensichtlichen Effekt","abcdefg"], }, Somehow the quotation marks for the second element are dropped. Not sure why that is. Anybody have a clue what I'm doing wrong?
  5. Hello everybody, I want to build a little workflow that reads a file containing JSON. The documentation does not really help me with that though, because the used example assumes that the content will be written within Alfred. I'm pretty sure there is a very simple solution to this, but I'm not really good with the Terminal etc. cat << EOB {"items": [ { "uid": "desktop", "type": "file", "title": "Desktop", "subtitle": "~/Desktop", "arg": "~/Desktop", . . . . ##### Should be replaced with something like cat << JSON.file ##### or something like that I've attempted editing the .plist file that contains the JSON from within Alfred, but that results in encoding problems. I hope I could get my problem across. Otherwise, I'll gladly provide more information
×
×
  • Create New...