Jump to content
theboyler

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

Share this post


Link to post

 

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 :)

Share this post


Link to post

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.

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...