Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ttscoff/a1a94f53c88e70d408d3232cb12d170b to your computer and use it in GitHub Desktop.
Save ttscoff/a1a94f53c88e70d408d3232cb12d170b to your computer and use it in GitHub Desktop.
I can not solve this one.

When running a service (in this case the Markdown Service Tools MultiMarkdown to RTF service), I'm getting "Couldn't communicate with a helper application." However, the actual error in console is shown below, an unexpected type error. This was working fine until High Sierra.

The service:

  1. takes text input, generates RTF using multimarkdown->html->textutil
  2. Uses pbcopy -Prefer rtf to put the result in the clipboard as rich text (rtf)
  3. the service retrieves the content of the clipboard and that's what it returns

Here's the error, any insight would be welcome:

<NSXPCConnection: 0x60c000300240> connection to service named com.apple.automator.xpc.runner: Exception caught during decoding of received message, dropping incoming message.
Exception: Exception while decoding argument 1 (#3 of invocation):
<NSInvocation: 0x60400026cd40>
return value: {v} void
target: {@} 0x0
selector: {:} null
argument 2: {Q} 2
argument 3: {@} 0x0

Exception: value for key 'NS.objects' was of unexpected class 'NSTextList'. Allowed classes are '{(
    NSFont,
    NSAttributedString,
    NSDictionary,
    AMXPCToken,
    NSNumber,
    NSData,
    NSAppleEventDescriptor,
    NSArray,
    NSMutableAttributedString,
    NSParagraphStyle,
    NSURL,
    NSColor,
    NSNull,
    NSString,
    NSTextTab,
    NSGlyphInfo
)}'.
@apophenist
Copy link

Hi all

I'm having the same issue using Brett's Markdown Service Tools - specifically markdown to RTF. This is the one required for email.

I've tried this in High Sierra and again Mojave. I've also tried installing some MultiMarkdown tools via brew.

Is anyone able to resolve this?

@johnwickerson
Copy link

johnwickerson commented Dec 14, 2018

@apophenist @hartmms I have found a partial workaround. I'm using the Markdown-to-RTF service in Mac Mail on Mojave. Text like this

hello **world**

works fine. But if I include bullets like this

* hello **world**

then I get the "Couldn't communicate with a helper application" error. So it looks like lists are off the menu for the time being.

Interestingly, if I now revert to my first example

hello **world**

then I get the error again! I found that this can be fixed by copying something else (any random piece of text) to the clipboard, and then trying again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment