How To Add a Colour Property To Script #361
-
Hi Derek and team - Thanks so much for the incredible script. Could someone please show me how to set a specific colour for the events that are being synced into my Google Calendar. I was unfortunately forced to add the sync to my "main" work calendar and due to that all these synced events are the same colour as other events I have in my main calendar. If someone could show me where in the script I need to add what text to set a specific colour for the events that get sent over that would truly make my day. I don't have a development background and don't want to break anything (eyesclosed). If I haven't explained myself well please let me know. Thanks so much! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
This should be in some of the helper text here: https://github.com/derekantrican/GAS-ICS-Sync/blob/master/Code.gs#L27 You can specify a calendar with color like this: |
Beta Was this translation helpful? Give feedback.
This should be in some of the helper text here: https://github.com/derekantrican/GAS-ICS-Sync/blob/master/Code.gs#L27
You can specify a calendar with color like this:
["https://p24-calendars.icloud.com/holidays/us_en.ics", "US Holidays", "11"]
(where the last value is a color id from here: https://developers.google.com/apps-script/reference/calendar/event-color