theboyler Posted July 17, 2013 Share 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 Link to comment
raguay.customct Posted July 17, 2013 Share Posted July 17, 2013 Do it as a script filter would be the easiest way. You would need to use the qWorkflow library. Link to comment
Tyler Eich Posted July 17, 2013 Share 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 Link to comment
theboyler Posted July 18, 2013 Author Share 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. Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now