theboyler 1 Posted July 17, 2013 I've made a workflow which takes the date you enter in alfred and queries my Calendars and returns the events between 7 days before and 7 days afterwards. I'd like to pass the returned text back to Alfred to display in the window, but I don't know how. Can anyone help? My script, for the record, is: on alfred_script(q) set q to date q do shell script "/usr/local/bin/icalBuddy -ic 1ED62DCA-ADC7-4A4C-A6B0-52EDB3342B87,92C54AEB-97CA-4300-A646-406457ABA32C,C36069C2-6937-4F43-9FC7-31D7DF221BFE,EBE1CD9A-2CDF-4163-AEF2-F70F845FB43E -iep \"title,datetime\" -sc -sd eventsFrom:\"" & (q - 7 * days) & "\" to:\"" & (q + 7 * days) & "\"" end alfred_script Quote Share this post Link to post
raguay.customct 46 Posted July 17, 2013 Do it as a script filter would be the easiest way. You would need to use the qWorkflow library. Quote Share this post Link to post
Tyler Eich 114 Posted July 17, 2013 I've made a workflow which takes the date you enter in alfred and queries my Calendars and returns the events between 7 days before and 7 days afterwards. I'd like to pass the returned text back to Alfred to display in the window, but I don't know how. Can anyone help? My script, for the record, is: on alfred_script(q) set q to date q do shell script "/usr/local/bin/icalBuddy -ic 1ED62DCA-ADC7-4A4C-A6B0-52EDB3342B87,92C54AEB-97CA-4300-A646-406457ABA32C,C36069C2-6937-4F43-9FC7-31D7DF221BFE,EBE1CD9A-2CDF-4163-AEF2-F70F845FB43E -iep \"title,datetime\" -sc -sd eventsFrom:\"" & (q - 7 * days) & "\" to:\"" & (q + 7 * days) & "\"" end alfred_script You could use a 'Large Type' output at the end of the workflow Cheers Quote Share this post Link to post
theboyler 1 Posted July 18, 2013 Thanks Tyler... Have added that and since amended the script to take a modifier for number of days before and after the date you give you give for events. It's here for download. Quote Share this post Link to post