a.lumley
-
Posts
2 -
Joined
-
Last visited
Content Type
Blogs
Gallery
Downloads
Events
Profiles
Forums
Articles
Media Demo
Posts posted by a.lumley
-
-
Good morning,
I'm currently trying to create a simple Script Filter Alfred 3 Workflow using Python. I found an earlier example which demonstrated how to pass XML results to a Python workflow:
xmloutput = """ <?xml version="1.0" encoding="utf-8" ?> <items> <item arg="testitem"> <title>FooBar</title> <subtitle>foo bar is a test item</subtitle> <icon>icon.png</icon> </item> </items> """ print(xmloutput)
My question is, what is the syntax for doing the same with the new JSON data structure?
regards,
Andrew
How to create simple Script Filter Python workflow
in Workflow Help & Questions
Posted
I started my research on that post but I was struggling with the implementation. For XML, it seems as though you just Print() the XML object and Alfred parses it but I can't get the same to work with JSON. Is it the same approach?