Ghawken / iMessagePlugin

IndigoPlugin for iMessage sending and parsing. Allows Indigo to react and response to any iMessage received and allows question/answers to users from Indigo via iMsg.
3 stars 0 forks source link

Change buddy exception error logging from debug to error #14

Open ryanbuckner opened 9 months ago

ryanbuckner commented 9 months ago

I was experiencing this issue for days and didn't know why my iMessages were not coming through. After I toggled debug I saw there was an error occurring. You may want to change this logging level.

 iMessage Plugin Debug           An exception was caught with this applescript string 
            set sendThis to "Testing"  
            tell application "Messages"
                set myid to get id of first service
                set theBuddy to buddy "+1xxxxxxxxxx" of service id myid
                send sendThis to theBuddy
            end tell

Traceback (most recent call last):
  File "plugin.py", line 581, in as_sendmessage
    reply = my_ascript_from_string.run()
  File "/Library/Application Support/Perceptive Automation/Indigo 2023.1/IndigoPluginHost3.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 2023.1/IndigoPluginHost3.app/Contents/Resources/PlugIns/applescript/__init__.py", line 65, in _unpackresult
    raise ScriptError(errorinfo)
applescript.ScriptError: Messages got an error: Can’t get buddy id "7F9AC3B3-5063-4120-6666-92BE1D3CC5BC:+1xxxxxxxxxx". (-1728) app='Messages' range=221-246