Skip to content

Documentation / @agentick/connector-imessage / buildAppleScript

Function: buildAppleScript()

buildAppleScript(handle, text): string

Defined in: imessage-send.ts:30

Build the AppleScript to send an iMessage.

The message text is escaped to prevent AppleScript injection:

  • Backslashes are doubled
  • Double quotes are escaped

Parameters

handle

string

text

string

Returns

string

Released under the ISC License.