Jump to content

Use Script Filter Output as Input?


Recommended Posts

Posted

I understand that a Script Filter will output data in a JSON format so that Alfred can use that info to display. I'm wondering if there is a way to get that JSON info and use it as an input for another step.

My use case is this. I already have the GCal workflow downloaded [https://github.com/deanishe/alfred-gcal]. This works well, but I have a slightly different use case that this doesn't cover. Specifically, I want to get a plain text list of free time based on my google calendar that I can paste somewhere like gmail. GCal workflow already has good support for selecting the calendars you care about, and getting a list of events for a given day. However, it just displays them in Alfred via a Script Filter.

 

I am hoping to be able to call gcal as an external trigger, then get the output in some format I can consume within my own workflow.

 

Is there an easy way to do this with Alfred?

Posted

As soon as I submitted this, I had a realization. I could just copy the code within the Script Filter object used in this workflow, then create a basic script object and use that. That way I can use the JSON output as I want.

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