Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add identifier to title #144

Closed
rinzula opened this issue Aug 3, 2020 · 13 comments
Closed

add identifier to title #144

rinzula opened this issue Aug 3, 2020 · 13 comments
Labels
enhancement New feature or request

Comments

@rinzula
Copy link

rinzula commented Aug 3, 2020

wondering if i can add a prefix to the title of event before. example event title is "John Doe" I would like to add a prefix before so that it would say "client: John Doe"
is there a line in there that i can type "client" so that the title will insert the word before the info fetched from the ical?

@rinzula rinzula added the enhancement New feature or request label Aug 3, 2020
@derekantrican
Copy link
Owner

Theoretically, yes. The question is: how many such cases do you have? Do you want every single event to have "client: " before it? Or are you wanting to set up some system like "John Doe" -> "client: John Doe" and "Sally" -> "friend: Sally", etc?

@rinzula
Copy link
Author

rinzula commented Aug 3, 2020

I have used 2 icals for the script, one for my clients and one for my co-workers clients which creates two calendars for me. I would like mine to say my name before the title (I'm Lea, so "Lea: John Doe") and my co worker's name before his clients (he is Judd, so "Judd: Jane doe") it's two different icals on the same app script. This creates two different calendars and I can change the colors but it would just be easier if we could see our names before the customer name in the title. If necessary I can do two different app scripts if this is not customizable inside one script for two icals.

@jonas0b1011001
Copy link
Collaborator

Have a look at this, the linked script will actually do both, add a prefix and change color according to the source calendar.

@rinzula
Copy link
Author

rinzula commented Aug 3, 2020

Will do, I'll let you know. Thanks

@rinzula
Copy link
Author

rinzula commented Aug 3, 2020

Ok worked like a charm! TY

@rinzula
Copy link
Author

rinzula commented Aug 4, 2020

@derekantrican
Hi good morning! The program ran correctly at first but stopped working. On the execution log when it runs, it installs and then runs startsync each time. the install gives no logs and the start sync logs " Another iteration is currently running! Exiting..."

@jonas0b1011001
Copy link
Collaborator

The custom script i linked above is based on v5.2, that version will get softlocked once an execution ends in an error. I will port the custom version to v5.3 which will resolve the symptoms.

In the meantime you could help us identify the error which initially caused the script to 'crash' by finding the log of the last successful execution here (should be quite obvious by comparing the execution durations). You should be able the find an error message in that log.

@jonas0b1011001 jonas0b1011001 reopened this Aug 4, 2020
@rinzula
Copy link
Author

rinzula commented Aug 4, 2020

8 executions in all before error.

1 First execution install
2,3,4, startsync execution successful (3 in a row)
5 execution install
6 execution startsync successful
7 execution install
8 execution startsync error:
Aug 3, 2020, 1:02:20 PM Error Exception: Data storage error at startSync(Code:128:41)

@rinzula
Copy link
Author

rinzula commented Aug 4, 2020

i uninstalled it, deleted the calendars it created and triggers, then made a new copy and ran the new copy, so far it seems to be working i will let you know if the sync fails

@jonas0b1011001
Copy link
Collaborator

Aug 3, 2020, 1:02:20 PM Error Exception: Data storage error at startSync(Code:128:41)

That's caused by a bug in google's services. It was first reported back in 2017, according to this it was fixed just today.

However I ported the changes to the latest dev build, this should continue working even if the error occurs again.

@derekantrican
Copy link
Owner

derekantrican commented Aug 4, 2020 via email

@rinzula
Copy link
Author

rinzula commented Aug 5, 2020

Ok, so after about a half day it popped the same error code. currently uninstalling and implementing the new iteration you gave yesterday :)

working well so far. will update on error or to closed tomorrow. thanks!

@rinzula
Copy link
Author

rinzula commented Aug 6, 2020

Running without a hitch! Thank you again for all of your help :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants