Jump to content

Script Filter only passes first variable from XML output


Mingwei

Recommended Posts

Was editing an old workflow made for Alfred 2 when I encountered this bug. I definitely don't expect this to be fixed since the XML format has long been deprecated, but I figured I'd report it anyway just in case, since it could break a number of old workflows. 

 

Alfred version: 4.6 [1266]

macOS version: 12.0.1

 

Replicated it using the example XML from Alfred's support pages. Only 'fruit' is passed on, while 'vegetable' is left out:

[00:43:49.179] Logging Started...
[00:43:52.017] Advanced Script Filters - Getting Started[Script Filter] Queuing argument ''
[00:43:52.094] Advanced Script Filters - Getting Started[Script Filter] Script with argv '' finished
[00:43:52.101] Advanced Script Filters - Getting Started[Script Filter] <?xml version="1.0"?>
<output>

  <variables>
    <variable name="fruit">banana</variable>
    <variable name="vegetable">carrot</variable>
  </variables>

  <items>
    <item arg="Placeholder item">
      <title>Placeholder item</title>
    </item>
  </items>

</output>
[00:43:52.918] Advanced Script Filters - Getting Started[Script Filter] Processing complete
[00:43:52.919] Advanced Script Filters - Getting Started[Script Filter] Passing output 'Placeholder item' to Debug
[00:43:52.921] Advanced Script Filters - Getting Started[Debug] Output from Script: 'Placeholder item'
Variables: {
  fruit = "banana"
}

 

 

Edited by Mingwei
Link to comment
Share on other sites

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