Script to close home window of InDesign

Hi,
I have this Apple script to close the home window when no document is open.
I have set it up like this, but it doesn't work how I wanted it to. When I run it with BTT, the cursor stays above the close button, but it doesn't seem to be clicking.
But when I run it with the script editor, it works great. :man_shrugging:

Any idea, why that is?
Thanks

I think there is a space before /usr/, maybe that’s causing the issue?

No, it didn't change.
I created a shortcut with the script, which seems to do the trick.
Now, it seems to be working. :man_shrugging: