Page 1 of 1
Access to Calendars?

Posted:
Wed Nov 18, 2020 10:52 am
by BMStroh
I purchased Hazel because I have a shell script running iCalBuddy - it needs to run in a verified context if I want to schedule it, and Hazel is a signed app.
Now that I'm on v5, it doesn't seem to work - no events are pulled from the calendar. And Hazel doesn't show up on the list of apps I can grant Calendar access to.
Any thoughts on how I can get back to where I was with v4? The other housekeeping features are a nice bonus, but this is the reason I bought the app.
Re: Access to Calendars?

Posted:
Wed Nov 18, 2020 12:39 pm
by Mr_Noodle
Hazel doesn't ask for Calendar access since it doesn't need it by default. You should consider using an AppleScript as that is asked for when used.
I'll think about adding the support to ask for Calendar support but need to see what the ramifications are for asking for too many permissions for things you don't actually use.
Re: Access to Calendars?

Posted:
Wed Nov 18, 2020 1:20 pm
by BMStroh
Not sure it's practical to try and rebuild a sed pipeline in AppleScript.
And writing a 1 line AppleScript to call the existing shell script results in a -1708 when I run it as a script or embedded; works when run manually.
This is unfortunate.
Re: Access to Calendars?

Posted:
Wed Nov 18, 2020 1:21 pm
by Mr_Noodle
Did you read the manual on AppleScript? Depending on whether it's embedded or external, you may or may not need a handler (or remove a handler if you have one already).
Re: Access to Calendars?

Posted:
Thu Nov 19, 2020 10:29 am
by Mr_Noodle
BTW, just added a permissions thingy for Calendars in 5.0.1 so you might want to give that one a go.
Re: Access to Calendars?

Posted:
Fri Nov 20, 2020 2:23 pm
by BMStroh
Just saw this - thank you for that, especially so quickly.
Calendar mgmt was the primary reason I went with Hazel 4, so I'm glad I'm back in business.