ChatGPT using AppleScript


I am trying to run an AppleScript with the Chat_gpt command from the BTT AppleScript suite:

tell application "BetterTouchTool"
chat_gpt user "My generative prompt"
end tell

I keep getting the error:
error "BetterTouchTool got an error: AppleEvent handler failed." number -10000

If I run another command from the BTT AppleScript script suite for example
is_true_tone_enabled - it works

This indicates that it may not be a general problem but only a problem here with the Chat_gpt command
Is there anyone her in this forum that have successfully created an AppleScript for the Chat_gpt command ?

MacBook Pro 2019
MacOS 12.6.8
BetterTouchTool version: 4.433

1 Like

You are right, there was an error in the scripting definition. It should work with 4.439 alpha (uploading now):

Excellent Andreas, extremely fast response to amend BTT,
I can confirm that it now works both on intel and Apple silicon

Thanks a lot