Closed roadglide03 closed 7 years ago
Ok I got around the formatting but having a script dump the test to a file then display it that way:
cat ical.sh
# if [ -f /tmp/ical.o ];then rm /tmp/ical.o fi ical.widget/icalBuddy -ec Birthdays -n -nc -ea -nrd -df "" -tf "%H%M%p" -iep "datetime,title" -eed eventsToday >>/tmp/ical.o
Then in the index.coffee file:
command: "ical.widget/ical.sh 2>/dev/null;cat /tmp/ical.o"
thanks Andy
I wanted to use other options for icalbuddy due to formatting but it displays the ascii code in front of the test. I tried several things but can't figure out how to display properly. I need the abbreviated calendar without all the junk. Here is what is displays as well as my icalbuddy line, thanks in advance:
IcalBuddy Command - icalBuddy -ec Birthdays -n -ea -nrd -df "" -tf "%H%M%p" -iep "datetime,title" -eed -f eventsToday+1
Displays - ^[[22m^[[39m^[[49m^[[24m^[[25m^[[1m ^[[32m Bi-weekly 1:1^[[39m (Calendar)^[[22m ^[[33m1130AM^[[39m ^[[1m ^[[32mITPR009255 - Non Prod Build - Daily AM Meeting Current Key Activities ^[[39m (Calendar)^[[22m ^[[33m1200PM^[[39m