Jump to content

Passing applescript output to alfred window


Recommended Posts

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

 

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

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