zoom-calendar.alfredworkflow icon indicating copy to clipboard operation
zoom-calendar.alfredworkflow copied to clipboard

Use a specific calendar

Open andxyz opened this issue 4 years ago • 0 comments

Not really an issue, but thought I'd document this.

I was able to focus this workflow to use a specific calendar, namely my work calendar. [email protected] with a small modification:

---
 zoom.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/zoom.rb b/zoom.rb
index d9112e2..05c7151 100755
--- a/zoom.rb
+++ b/zoom.rb
@@ -25,7 +25,7 @@ end
 # -po title,datetime,location,url,notes sets field order
 # -iep title,datetime,location,url,notes sets what fields to retrieve
 # eventsToday+2 shows "now plus two days"
-output = `/usr/local/bin/icalbuddy -ea -n -b '* ' -nnr " " -ps "|\\n|" -po title,datetime,location,url,notes -iep title,datetime,location,url,notes eventsToday+2 2>&1`
+output = `/usr/local/bin/icalbuddy -ea -n -ic '[email protected]' -b '* ' -nnr " " -ps "|\\n|" -po title,datetime,location,url,notes -iep title,datetime,location,url,notes eventsToday+2 2>&1`
 error(output) if $? != 0

 events = output.split(/^\* /)[1..-1] || []
--
2.27.0

andxyz avatar Oct 27 '20 19:10 andxyz