O$ 10.22 AppleScript Error (Not authorized to send Apple events to Calendar.)
Mike Matthews - Omnis
omnis at lineal.co.uk
Wed Nov 9 20:58:47 UTC 2022
Hello Jef,
I tried to, and that is the odd thing, it doesn’t appear in there. I’ve tried all sorts to get it in thereabout fail miserably every time.
Mike
On 9 Nov 2022, at 19:23, Jef Leys | Desim <jef.leys at desim.be<mailto:jef.leys at desim.be>> wrote:
Hi,
Did you allow Omnis access in Calendar in SystemPreferences/Security&Privacy/Privacy?
Met vriendelijke groeten,
De inhoud van dit bericht is alleen bestemd voor de geadresseerde en kan vertrouwelijke of persoonlijke informatie bevatten. Als u dit bericht onbedoeld heeft ontvangen verzoeken wij u het te vernietigen en de afzender te informeren. Het is niet toegestaan om een bericht dat niet voor u bestemd is te vermenigvuldigen dan wel te verspreiden. Aan dit bericht inclusief de bijlagen kunnen geen rechten ontleend worden, tenzij schriftelijk anders wordt overeengekomen. Desim NV aanvaardt geen enkele aansprakelijkheid voor schade en/of kosten die voortvloeien uit onvolledige en/of foutieve informatie in e-mailberichten.
Op 9 nov. 2022, om 19:38 heeft Mike Matthews - Omnis via omnisdev-en <omnisdev-en at lists.omnis-dev.com<mailto:omnisdev-en at lists.omnis-dev.com>> het volgende geschreven:
Hello All,
An odd problem has arisen with new Macs and Monterey. Just missed it until now really. When I run and AppleScript to fetch events from iCal, I get a warning 'Not authorized to send Apple events to Calendar.’ I can launch iCal/Calendar however, but not control it.
This is the reported error text:
'Not authorized to send Apple events to Calendar.'
On my older Mac that is still using Intel chip and OSX 10.15, all is fine, but on newer M1, Monterey, I can’t seem to get the security setup right.
I have reset using 'tccutil reset AppleEvents’ so I get the prompt to allow security to be allowed, but the setting is not made. Looking at the Calendars in Security & Privacy pane, no apps are shown.
Is this just me, or are others failing as well?
Begin text block
Text:tell application "iCal"(Carriage return)
Text:launch(Carriage return)
Text:end tell(Carriage return)
End text block
Get text block lvScript
Do $runapplescript(lvScript,lvResult,lvApplescriptError) Returns lvErrCode
If len(lvApplescriptError)
OK message {Encountered Error: [lvApplescriptError]}
Calculate lvFlagOK as kFalse
End If
If lvFlagOK
Begin text block
Text:tell application "iCal"(Carriage return)
Text:set theCalendarNames to name of every calendar(Carriage return)
Text:end tell(Carriage return)
End text block
Get text block lvScript
Do $runapplescript(lvScript,lvResult,lvApplescriptError) Returns lvErrCode
End If
Thanks
Mike Matthews
Lineal Software Solutions
Commercial House, The Strand<x-apple-data-detectors://1/1> Barnstaple, Devon, EX31 1EU<x-apple-data-detectors://1/1>
omnis at lineal.co.uk<mailto:omnis at lineal.co.uk><mailto:mike.matthews at lineal.co.uk>
https://linkprotect.cudasvc.com/url?a=https%3a%2f%2fwww.lineal.co.uk&c=E,1,yzSPiFay4GOI_xjCsap6_kX2DwD8jjbBlo1ekbK7BnJD-vDv1-P7xKXnsFD20aBzEZ2DcdgNcoTocQw-4HH2jZKAkUA1jpNX8kdOWdgb5W-X&typo=1<https://linkprotect.cudasvc.com/url?a=http%3a%2f%2fwww.lineal.co.uk%2f&c=E,1,nrNngxq4v7icvdTKa5acZyeRWvkQb4GBiwWrjgWqfxL4P_wxJaLHgnUI03K8dtl8Pp_imnmsI1rk9aqKoTGmh08pNSCjoFbC4B1ok0QystqCGYk-bbBXATDMfLqM&typo=1>
https://linkprotect.cudasvc.com/url?a=https%3a%2f%2fwww.sqlworks.co.uk&c=E,1,k04NldJNy60nds_dNB-So2G3TdK8zYUkDGBIi_JyF3lFx6VJF5HZopvRXXQG3N-3oZ_bKTD3tUE0gPi3SJ6lFsyH_SjhvuMescmifJMPhZYDfY4Vo3RQIvis&typo=1<https://linkprotect.cudasvc.com/url?a=http%3a%2f%2fwww.sqlworks.co%2f&c=E,1,RH2B5umFlyJTxIc5imf7EVm07t-T80wfBT90_y20kXQ-MdTxMaGc-K9sui0j8Ebx67V4BV8a6F454TqTLHO_XT-NeC010x_C_HuHLECunDpUHiPk&typo=1>
_____________________________________________________________
Manage your list subscriptions at https://linkprotect.cudasvc.com/url?a=https%3a%2f%2flists.omnis-dev.com&c=E,1,9xhGqbBMnWW7fwLydRtN8mZhxs352ko0dotO0dfTUeB5o2JqjCexud8w-ffJO5NC3u5dZJZ7jczaVMk-VoLUcEaOPQYrAiNlPJ9BTVy8FDVmXf9xCG_Asz5Et5g,&typo=1
Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com
_____________________________________________________________
Manage your list subscriptions at https://linkprotect.cudasvc.com/url?a=https%3a%2f%2flists.omnis-dev.com&c=E,1,qOglux4YhrJorApazyBiu0zMHqKV6lriAlYWBbW7t4gbDLPdqnAXS-qhs5ZmlGWElOz30Axpuy9To0uVPZOhOuaXrjdyraxrLLrJGh2Sc6wVfQ,,&typo=1
Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com
More information about the omnisdev-en
mailing list