Error "Not authorized to send Apple events to Messages"

User avatar
matt (support)
Site Admin
Posts: 21542
Joined: Mon Jan 27, 2003 1:17 pm
Location: Texas
Contact:

Re: Error "Not authorized to send Apple events to Messages"

Post by matt (support) »

Did you see and follow the steps in my post above?
Image
MarcoGT
Posts: 1148
Joined: Thu Sep 11, 2014 1:06 pm
Location: Germany

Re: Error "Not authorized to send Apple events to Messages"

Post by MarcoGT »

Yes, sorry, forgot to mention, but no popup (of course I replaced Spotify with Messages)
User avatar
matt (support)
Site Admin
Posts: 21542
Joined: Mon Jan 27, 2003 1:17 pm
Location: Texas
Contact:

Re: Error "Not authorized to send Apple events to Messages"

Post by matt (support) »

Okay, I'm not sure what else to suggest but I do believe we have this working better in the next release of Indigo (7.4.2 or 7.5.0). I don't yet have an ETA as to when it will be available, unfortunately.
Image
ppespepe
Posts: 51
Joined: Wed May 27, 2020 5:06 pm

Re: Error "Not authorized to send Apple events to Messages"

Post by ppespepe »

Hello,

Does anybody has been able to make this work? I'm using Mojave but getting the following when trying to send a message:

Jul 7, 2020 at 12:36:21 AM
Action Group Send iMessage Test
iMessage Plugin Debug sendImsg() method called.
iMessage Plugin Debug sendImsg() buddyHandle:[email protected] and theMessage:Testosterona and use lastBuddy:False
iMessage Plugin Debug as_sendmessage() method called.
iMessage Plugin Debug Sending iMsg:Testosterona to Buddy/User:[email protected]
iMessage Plugin Debug A error of type :ScriptError occured. The longer message is :Not authorized to send Apple events to Messages.
iMessage Plugin Error An Error occured within the iMsg AppleScript component - ScriptError
iMessage Plugin Error The Error was :Not authorized to send Apple events to Messages. (-1743) app=u'Messages' range=103-105
iMessage Plugin Error Caught Exception:
Traceback (most recent call last):
File "plugin.py", line 1184, in sendiMsg
self.as_sendmessage(buddyHandle, theMessage)
File "plugin.py", line 462, in as_sendmessage
reply = my_ascript_from_string.run()
File "/Library/Application Support/Perceptive Automation/Indigo 7.4/IndigoPluginHost.app/Contents/Resources/PlugIns/applescript/__init__.py", line 90, in run
return self._unpackresult(*self._script.executeAndReturnError_(None))
File "/Library/Application Support/Perceptive Automation/Indigo 7.4/IndigoPluginHost.app/Contents/Resources/PlugIns/applescript/__init__.py", line 65, in _unpackresult
raise ScriptError(errorinfo)
ScriptError: Not authorized to send Apple events to Messages. (-1743) app=u'Messages' range=103-105

Any news so far? :D

PP
User avatar
matt (support)
Site Admin
Posts: 21542
Joined: Mon Jan 27, 2003 1:17 pm
Location: Texas
Contact:

Re: Error "Not authorized to send Apple events to Messages"

Post by matt (support) »

Did you try the steps mentioned earlier in this thread? You'll want to replace "Spotify" with "Messages".
Image
ppespepe
Posts: 51
Joined: Wed May 27, 2020 5:06 pm

Re: Error "Not authorized to send Apple events to Messages"

Post by ppespepe »

Hi Matt,

Yep... tried creating the script

Code: Select all

tell application "Messages"
end tell
Then running from an action group but no pop up... but the good news is, while I was typing this reply, I gave it another try with:

Code: Select all

tell application "Messages"
	set theBuddy to buddy "[email protected]" of service "iCloud"
	send "Hi there" to theBuddy
end tell
It gave me an error but opened the pop up... now it is working.

Did something similar with iTunes local control:

Code: Select all

tell application "iTunes"
	set sound volume to 40
	set EQ enabled to true
	play
end tell
And it worked as well in my Mojave. :)

Regards,

PP
User avatar
jay (support)
Site Admin
Posts: 19232
Joined: Wed Mar 19, 2008 11:52 am
Location: Austin, Texas
Contact:

Re: Error "Not authorized to send Apple events to Messages"

Post by jay (support) »

Yeah, sorry, this was my bad. I discovered that you have to actually have the app do something before the workaround above works correctly. I was going to update the post (which I have now) but it just slipped my mind.
Jay (Indigo Support)
Twitter | Facebook | LinkedIn
philipbasile
Posts: 126
Joined: Thu Jan 08, 2015 8:59 pm
Location: NJ

Re: Error "Not authorized to send Apple events to Messages"

Post by philipbasile »

Awesome !
Worked.
User avatar
matt (support)
Site Admin
Posts: 21542
Joined: Mon Jan 27, 2003 1:17 pm
Location: Texas
Contact:

Re: Error "Not authorized to send Apple events to Messages"

Post by matt (support) »

Indigo 7.5 is now available and should avoid this macOS security snafu.
Image
Post Reply

Return to “iMessage”