- Do "Copy Apple Script to Trigger Action" with "Use ChatGPT (Optionally on Selected Text). Copy Result to Clipboard / Variable."
- Run it.
- Get error:
execution error: BetterTouchTool got an error: AppleEvent handler failed. (-10000)
I prefer this "trigger_action" over "chat_gpt" since it has BTTAdditionalActionData, but it doesn't work anyway. Is this supposed to not work? Running the AppleScript in both in the BTT app action and outside of BTT fails.
tell application "BetterTouchTool"
trigger_action "{
BTTActionCategory: 0,
BTTIsPureAction: 1,
BTTPredefinedActionType: 471,
BTTPredefinedActionName: 'Use ChatGPT (Optionally on Selected Text). Copy Result to Clipboard or Variable.',
BTTAdditionalActionData: '{\\\"BTTChatGPTTransformerShowMiniHUD\\\":0,\\\"BTTChatGPTTransformerExampleInput\\\":\\\"\\\",\\\"BTTChatGPTUseStreaming\\\":true,\\\"BTTChatGPTKeepSelectedText\\\":0,\\\"BTTChatGPTNumberOfHistoryItems\\\":0,\\\"BTTChatGPTTransformerUserPrompt\\\":\\\"write a short story\\\",\\\"BTTChatGPTTransformerSystemPrompt\\\":\\\"\\\",\\\"BTTActionPasteInputFormat\\\":\\\"public.utf8-plain-text\\\",\\\"BTTChatGPTAppendSelectedText\\\":0,\\\"BTTChatGPTCopyResponseToVariableName\\\":\\\"gpt_response\\\",\\\"BTTChatGPTCopyResponseToClipboard\\\":0,\\\"BTTChatGPTCopyResponseToVariable\\\":true,\\\"BTTChatGPTModelSelection\\\":\\\"gpt-4o-mini\\\"}',
BTTEnabled2: 1,
}"
end tell
Device information:
Type of Mac: MacBook Pro 16-Inch, 2019
macOS version: 15.2
BetterTouchTool version: 5.157