Skip to content

Change buddy exception error logging from debug to error  #14

@ryanbuckner

Description

@ryanbuckner

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions